Home
last modified time | relevance | path

Searched refs:HostedGame (Results 1 – 7 of 7) sorted by relevance

/dports/games/lordsawar/lordsawar-0.3.2/src/
H A Dhosted-game.cpp27 Glib::ustring HostedGame::d_tag = "hostedgame";
32 HostedGame::HostedGame(AdvertisedGame *advertised_game) in HostedGame() function in HostedGame
40 HostedGame::HostedGame(XML_Helper *helper) in HostedGame() function in HostedGame
45 sigc::mem_fun(*this, &HostedGame::loadAdvertisedGame)); in HostedGame()
48 HostedGame::~HostedGame() in ~HostedGame()
53 bool HostedGame::save(XML_Helper* helper) const in save()
63 bool HostedGame::loadAdvertisedGame(Glib::ustring tag, XML_Helper *helper) in loadAdvertisedGame()
73 void HostedGame::ping() in ping()
76 (sigc::mem_fun(*this, &HostedGame::on_pinged)); in ping()
80 void HostedGame::on_pinged(bool success) in on_pinged()
H A Dgamelist.h27 class HostedGame; variable
35 class Gamelist: public std::list<HostedGame*>, public sigc::trackable
63 HostedGame *findGameByScenarioId(Glib::ustring scenario_id) const;
67 bool add(HostedGame *g);
116 static bool orderByTime(HostedGame*rhs, HostedGame *lhs);
128 void on_could_not_ping_game(HostedGame *game);
H A Dgamelist.cpp67 helper.registerTag(HostedGame::d_tag, sigc::mem_fun(this, &Gamelist::load_tag)); in loadFromFile()
100 helper->registerTag(HostedGame::d_tag, sigc::mem_fun(this, &Gamelist::load_tag)); in Gamelist()
136 if (tag == HostedGame::d_tag) in load_tag()
138 HostedGame *g = new HostedGame(helper); in load_tag()
147 HostedGame *g = NULL; in addEntry()
148 g = new HostedGame(advertised_game); in addEntry()
154 bool Gamelist::orderByTime(HostedGame*rhs, HostedGame *lhs) in orderByTime()
243 HostedGame *Gamelist::findGameByScenarioId(Glib::ustring scenario_id) const in findGameByScenarioId()
253 bool Gamelist::add(HostedGame *g) in add()
291 void Gamelist::on_could_not_ping_game(HostedGame *game) in on_could_not_ping_game()
H A Dhosted-game.h34 class HostedGame
40 HostedGame(AdvertisedGame *advertised_game);
43 HostedGame(XML_Helper *helper);
46 ~HostedGame();
70 sigc::signal<void, HostedGame*> cannot_ping_game;
/dports/games/lordsawar/lordsawar-0.3.2/src/ghs/
H A Dgamehost-server.h37 class HostedGame; variable
88 void on_connected_to_gamelist_server_for_advertising(HostedGame *game);
96 HostedGame* host(GameScenario *game_scenario, Profile *profile, Glib::ustring &err);
H A Dgamehost-server.cpp134 HostedGame *g = Gamelist::getInstance()->findGameByScenarioId(scenario_id); in unhost()
231 HostedGame * GamehostServer::host(GameScenario *game_scenario, Profile *profile, Glib::ustring &err) in host()
251 HostedGame *g = new HostedGame(new AdvertisedGame(game_scenario, profile)); in host()
286 void GamehostServer::on_connected_to_gamelist_server_for_advertising(HostedGame *game) in on_connected_to_gamelist_server_for_advertising()
412 HostedGame *g = host(game_scenario, profile, err); in onGotMessage()
/dports/games/lordsawar/lordsawar-0.3.2/src/gls/
H A Dgamelist-server.cpp124 HostedGame *g = Gamelist::getInstance()->findGameByScenarioId(scenario_id); in unadvertise()
236 HostedGame *h = Gamelist::getInstance()->findGameByScenarioId(a->getId()); in loadAdvertisedGame()
248 Gamelist::getInstance()->end(), h, new HostedGame(a)); in loadAdvertisedGame()
256 bool success = Gamelist::getInstance()->add(new HostedGame(a)); in loadAdvertisedGame()