Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
jonylu7 committed Jun 14, 2024
1 parent 6a0bd6d commit 7fc60c3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/Structure/PowerPlants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ class PowerPlants : public Structure {

};
PowerPlants(HouseType house)
: Structure(100.F, 15.F * CHEAT, 300.F,400.F,
GameObjectID(UnitType::POWER_PLANT, house),std::make_shared<Health>(100, 0.7)){};
: Structure(100.F, 15.F * CHEAT, 300.F, 400.F,
GameObjectID(UnitType::POWER_PLANT, house),
std::make_shared<Health>(100, 0.7)){};
void SetSpriteSheet() override {
m_StructureSpriteSheet->Start(
"../assets/sprites/PowerPlants_SpriteSheet.png", 48, 48, 13, 0);
m_RelativeOccupiedArea = {{0, 0}, {0, 1}, {1, 0}, {1, 1}};
m_SpriteSheetAnimation->initSpriteSheetAnimation(m_StructureSpriteSheet,
false, INTERVAL, false);
m_SpriteSheetAnimation->initSpriteSheetAnimation(
m_StructureSpriteSheet, false, INTERVAL, false);
}
void SetObjectLocation(glm::vec2 location) override {
location = MapUtil::PositionStickToGrid(location);
Expand Down

0 comments on commit 7fc60c3

Please sign in to comment.