void StopGold::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetGOT() == GOT_NOB_MILITARY) { if(gwg.GetSpecObj<nobMilitary>(x,y)->GetPlayer() == playerid) gwg.GetSpecObj<nobMilitary>(x,y)->StopGold(); } }
/// Fuehrt das GameCommand aus void TradeOverLand::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { noBase * nob = gwg.GetNO(x,y); if(nob->GetGOT() == GOT_NOB_HARBORBUILDING || nob->GetGOT() == GOT_NOB_HQ || nob->GetGOT() == GOT_NOB_STOREHOUSE) player.Trade(static_cast<nobBaseWarehouse*>(nob),gt,job,count); }
void StartExplorationExpedition::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetGOT() == GOT_NOB_HARBORBUILDING) gwg.GetSpecObj<nobHarborBuilding>(x,y)->StartExplorationExpedition(); }
void ChangeShipYardMode::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetGOT() == GOT_NOB_SHIPYARD) gwg.GetSpecObj<nobShipYard>(x,y)->ToggleMode(); }
void ChangeReserve::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetType() == NOP_BUILDING) gwg.GetSpecObj<nobBaseWarehouse>(x,y)->SetRealReserve(rank,count); }
void ChangeAllInventorySettings::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetType() == NOP_BUILDING) gwg.GetSpecObj<nobBaseWarehouse>(x,y) ->ChangeAllRealInventorySettings(category,state); }
void StopProduction::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetGOT() == GOT_NOB_USUAL || gwg.GetNO(x,y)->GetGOT() == GOT_NOB_SHIPYARD) gwg.GetSpecObj<nobUsual>(x,y)->StopProduction(); }
void CallScout::Execute(GameWorldGame& gwg, GameClientPlayer& player, const unsigned char playerid) { if(gwg.GetNO(x,y)->GetGOT() == GOT_FLAG) player.CallFlagWorker(x,y,JOB_SCOUT); }
void CallScout::Execute(GameWorldGame& gwg, GamePlayer& player, const unsigned char /*playerId*/) { if(gwg.GetNO(pt_)->GetGOT() == GOT_FLAG) player.CallFlagWorker(pt_, JOB_SCOUT); }