feat: implement basic tower placement
This commit is contained in:
@@ -18,7 +18,9 @@ enum class TowerType : std::uint8_t{
|
||||
|
||||
Leach,
|
||||
Turret,
|
||||
Necromancer
|
||||
Necromancer,
|
||||
|
||||
TowerCount
|
||||
};
|
||||
|
||||
enum class TowerSize : bool{
|
||||
@@ -64,8 +66,8 @@ public:
|
||||
|
||||
// operator to sort maps
|
||||
friend bool operator<(const TowerLevel& level, const TowerLevel& other){
|
||||
return level.getLevel() * (std::uint8_t)level.getPath() <
|
||||
other.getLevel() * (std::uint8_t)other.getPath();
|
||||
return level.getLevel() * static_cast<std::uint8_t>(level.getPath()) <
|
||||
other.getLevel() * static_cast<std::uint8_t>(other.getPath());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user