Skip to content
Snippets Groups Projects
Commit be757576 authored by Nicolas Will's avatar Nicolas Will
Browse files

remove unused member an funktionts in level.hpp

parent 5c2761ec
Branches
No related tags found
2 merge requests!29Merge main into box2d to implement physics,!20Level event handler
......@@ -71,35 +71,25 @@ class Level : public Scene
std::string m_name;
int m_width;
int m_height;
std::vector<Tile> m_tiles;
std::unordered_map<int, Building> m_buildings;
std::unordered_map<int, Unit> m_units;
std::unordered_map<int, Effect> m_effects;
int m_selectedUnit;
int m_targetedUnit;
int m_selectedBuilding;
ContextMenu m_contextMenu;
bool m_contextMenuActive;
int m_id;
LevelState m_state;
std::pair<int, int> calcTilePos(int mouseX, int mouseY);
void selectEntity(int x, int y);
int selectUnit(int tileX, int tileY);
bool targetUnit(int tileX, int tileY);
int selectBuilding(int tileX, int tileY);
void handleSelectingEvents(Engine& engine, SDL_Event& event);
void handleMenuActiveEvents(Engine& engine, SDL_Event& event);
void handleMovementEvents(Engine& engine, SDL_Event& event);
void handleAttackingEvents(Engine& engine, SDL_Event& event);
bool clickCheckLeft(int mouseX, int mouseY);
bool clickCheckRight(int mouseX, int mouseY);
};
} // namespace advanced_wars
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment