mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
27 lines
616 B
C++
27 lines
616 B
C++
#ifndef STRUCTURE_H
|
|
#define STRUCTURE_H
|
|
|
|
#include "unit.h"
|
|
|
|
namespace vb01{
|
|
class Node;
|
|
}
|
|
|
|
namespace battleship{
|
|
class Structure : public Unit{
|
|
public:
|
|
Structure(Player*, int, vb01::Vector3, vb01::Quaternion, int = 0, Unit::State = Unit::State::STAND_GROUND);
|
|
~Structure();
|
|
virtual void update();
|
|
inline bool isComplete(){return buildStatus == 100;}
|
|
inline int getBuildStatus(){return buildStatus;}
|
|
inline void incrementBuildStatus(){buildStatus++;}
|
|
private:
|
|
protected:
|
|
vb01::Node *buildStatusBackground = nullptr, *buildStatusForeground = nullptr;
|
|
int buildStatus = 0;
|
|
};
|
|
}
|
|
|
|
#endif
|