goto-bus-stop / aocmultiny

[wip] Tiny NAT-traversing Age of Empires 2 Multiplayer client.
GNU General Public License v3.0
6 stars 1 forks source link

dplib: move most of DPLobby to a new DPSession class #17

Closed goto-bus-stop closed 8 years ago

goto-bus-stop commented 8 years ago

A DPSession will represent a single game session, and the DPLobby class will map to DirectPlay's own lobby stuff with some sugar sprinkled on top.

Currently:

auto lobby = new DPLobby(new DPGameAoC(), "Player name");
lobby->host();
lobby->launch();

Maybe-future:

auto lobby = new DPLobby();
auto game = new DPGameAoC();
auto session = lobby->hostSession(game);
session->launch();

// maybe?
auto session = lobby->joinSession(game, address, sessionGuid);
session->launch();
goto-bus-stop commented 8 years ago

544c884897351d743c6bf36320cef069e706b10c