MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / BuildingObject

Class BuildingObject

source/entities/BuildingObject.h:33–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31class ODPacket;
32
33class BuildingObject: public RenderedMovableEntity
34{
35public:
36 BuildingObject(GameMap* gameMap, Building& building, const std::string& meshName, Tile* targetTile,
37 Ogre::Real x, Ogre::Real y, Ogre::Real z, Ogre::Real rotationAngle, bool hideCoveredTile,
38 float opacity = 1.0f, const std::string& initialAnimationState = "", bool initialAnimationLoop = true);
39 BuildingObject(GameMap* gameMap, Building& building, const std::string& meshName,
40 Tile& targetTile, Ogre::Real rotationAngle, bool hideCoveredTile, float opacity = 1.0f,
41 const std::string& initialAnimationState = "", bool initialAnimationLoop = true);
42 BuildingObject(GameMap* gameMap);
43
44 virtual GameEntityType getObjectType() const override;
45
46 void doUpkeep() override;
47
48 void addParticleEffect(const std::string& effectScript, uint32_t nbTurns);
49
50 void fireRefresh();
51
52 static BuildingObject* getBuildingObjectFromPacket(GameMap* gameMap, ODPacket& is);
53};
54
55#endif // BUILDINGOBJECT_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected