mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
buildable structures
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
#ifndef ENGINEER_H
|
||||
#define ENGINEER_H
|
||||
|
||||
#include <util.h>
|
||||
|
||||
#include "vehicle.h"
|
||||
|
||||
namespace battleship{
|
||||
class Structure;
|
||||
|
||||
class Engineer : public Vehicle{
|
||||
public:
|
||||
Engineer(Player*, int, vb01::Vector3, vb01::Quaternion);
|
||||
void build(Order);
|
||||
private:
|
||||
vb01::s64 lastIncrementTime = 0;
|
||||
int incrementRate = 50;
|
||||
|
||||
bool canIncrementStructureStatus(){return vb01::getTime() - lastIncrementTime > incrementRate;}
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user