buildable structures

This commit is contained in:
devZoGok
2022-11-26 20:09:23 +02:00
parent bdfda01d9f
commit 913d61e926
9 changed files with 111 additions and 16 deletions
+23
View File
@@ -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