I would like some help from those who have dealt more with the source. I've taken, as an example, the code for bombarding a tile.
There's separate code for executing the bombardment, counting the damage, etc., understanable things. However, can anyone enlighten me as to how to properly use that g_gevManager properly? Its class is GameEventManager, and I can see several different classes that do with it, like GameEvent, GameEventArgList, etc.
Any information on those classes would be much appreciated.
Code:
void SelectedItem::Bombard(const MapPoint &pnt) { PLAYER_INDEX player = GetVisiblePlayer(); if(m_select_state[player] == SELECT_TYPE_LOCAL_ARMY ) { g_gevManager->AddEvent(GEV_INSERT_Tail, GEV_BombardOrder, GEA_Army, m_selected_army[player], GEA_MapPoint, pnt, GEA_End); } }
Any information on those classes would be much appreciated.
Comment