mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
24 lines
428 B
C++
24 lines
428 B
C++
#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 buildRate = 100;
|
|
|
|
bool canIncrementStructureStatus(){return vb01::getTime() - lastIncrementTime > buildRate;}
|
|
};
|
|
}
|
|
|
|
#endif
|