working circular lights around units

This commit is contained in:
devZoGok
2024-09-12 19:27:30 +03:00
parent a0c1ffb4e2
commit 166696041c
5 changed files with 29 additions and 10 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ namespace vb01{
class Mesh;
class Quad;
class Node;
class Light;
class Camera;
}
@@ -156,6 +157,7 @@ namespace battleship{
inline int getNumOrders(){return orders.size();}
inline std::string getGuiScreen(){return guiScreen;}
inline BuildableUnit getBuildableUnit(int i){return buildableUnits[i];}
inline vb01::Node* getLosLightNode(){return losLightNode;}
private:
void renderOrderLine(bool);
void updateScreenCoordinates();
@@ -168,7 +170,7 @@ namespace battleship{
const int orderVecDispLength = 2000, DEATH_HP = 0;
sf::SoundBuffer *selectionSfxBuffer;
sf::Sound *selectionSfx = nullptr;
vb01::Node *hpBackgroundNode = nullptr, *hpForegroundNode = nullptr, *lightNode = nullptr;
vb01::Node *hpBackgroundNode = nullptr, *hpForegroundNode = nullptr, *losLightNode = nullptr;
bool vehicle;
protected:
UnitClass unitClass;