model of a sp/mp battle More...
#include <battle.h>
Inherits IBattle.

Public Types | |
| typedef std::map< wxString, User > | UserVec |
| typedef UserVec::const_iterator | UserVecCIter |
| typedef UserVec::iterator | UserVecIter |
| typedef std::map< int, TeamInfoContainer > | TeamVec |
| replay&savegame parsing stuff | |
| typedef TeamVec::const_iterator | TeamVecCIter |
| typedef TeamVec::iterator | TeamVecIter |
| typedef std::map< int, AllyInfoContainer > | AllyVec |
| typedef AllyVec::const_iterator | AllyVecCIter |
| typedef AllyVec::iterator | AllyVecIter |
| typedef std::map< wxString, User * > | user_map_t |
| mapping from nick to user object | |
| typedef user_map_t::iterator | user_iter_t |
| iterator for user map | |
| typedef user_map_t::const_iterator | user_const_iter_t |
Constants | |
| enum | HostInfo { HI_None = 0, HI_Map = 1, HI_Locked = 2, HI_Spectators = 4, HI_StartResources = 8, HI_MaxUnits = 16, HI_StartType = 32, HI_GameType = 64, HI_Options = 128, HI_StartRects = 256, HI_Restrictions = 512, HI_Map_Changed = 1024, HI_Mod_Changed = 2048, HI_User_Positions = 4096, HI_Send_All_opts = 8192 } |
Enums | |
| enum | BalanceType { balance_divide, balance_random } |
| enum | StartType { ST_Fixed = 0, ST_Random = 1, ST_Choose = 2, ST_Pick = 3 } |
| enum | GameType { GT_ComContinue = 0, GT_ComEnds = 1, GT_Lineage = 2 } |
Public Member Functions | |
| Battle (Server &serv, int id) | |
| ~Battle () | |
| Server & | GetServer () |
| AutoHost & | GetAutoHost () |
| void | SendHostInfo (HostInfo update) |
| void | SendHostInfo (const wxString &Tag) |
| void | Update () |
| void | Update (const wxString &Tag) |
| void | Join (const wxString &password=_T("")) |
| void | Leave () |
| void | KickPlayer (User &user) |
| void | RingNotReadyPlayers () |
| void | RingNotSyncedPlayers () |
| void | RingNotSyncedAndNotReadyPlayers () |
| void | RingPlayer (const User &u) |
| void | Say (const wxString &msg) |
| void | DoAction (const wxString &msg) |
| void | SetLocalMap (const UnitSyncMap &map) |
| void | OnRequestBattleStatus () |
| void | SendMyBattleStatus () |
| bool | ExecuteSayCommand (const wxString &cmd) |
| quick hotfix for bans returns true if user is banned (and hence has been kicked) | |
| void | AddBot (const wxString &nick, UserBattleStatus status) |
| void | ForceSide (User &user, int side) |
| void | ForceTeam (User &user, int team) |
| void | ForceAlly (User &user, int ally) |
| void | ForceColour (User &user, const wxColour &col) |
| void | ForceSpectator (User &user, bool spectator) |
| void | BattleKickPlayer (User &user) |
| void | SetHandicap (User &user, int handicap) |
| User & | OnUserAdded (User &user) |
| void | OnUserBattleStatusUpdated (User &user, UserBattleStatus status) |
| void | OnUserRemoved (User &user) |
| void | ForceUnsyncedToSpectate () |
| void | ForceUnReadyToSpectate () |
| void | ForceUnsyncedAndUnreadyToSpectate () |
| void | SetAutoLockOnStart (bool value) |
| > | |
| bool | GetAutoLockOnStart () |
| void | SetLockExternalBalanceChanges (bool value) |
| bool | GetLockExternalBalanceChanges () |
| void | FixColours () |
| void | Autobalance (BalanceType balance_type=balance_divide, bool clans=true, bool strong_clans=true, int allyteamsize=0) |
| void | FixTeamIDs (BalanceType balance_type=balance_divide, bool clans=true, bool strong_clans=true, int controlteamsize=0) |
| void | SendScriptToClients () |
| quick hotfix for bans | |
| bool | CheckBan (User &user) |
| void | SetImReady (bool ready) |
| > | |
| User & | GetMe () |
| const User & | GetMe () const |
| void | UserPositionChanged (const User &user) |
| int | GetID () |
| void | SaveMapDefaults () |
| void | LoadMapDefaults (const wxString &mapname) |
| void | StartHostedBattle () |
| void | StartSpring () |
| void | OnTimer (wxTimerEvent &) |
| void | SetInGame (bool ingame) |
| void | OnUnitsyncReloaded (GlobalEvents::GlobalEventData data) |
| void | SetAutoUnspec (bool value) |
| bool | GetAutoUnspec () |
| void | ShouldAutoUnspec () |
| virtual void | SetHostMap (const wxString &mapname, const wxString &hash) |
| virtual const UnitSyncMap & | LoadMap () |
| virtual wxString | GetHostMapName () const |
| virtual wxString | GetHostMapHash () const |
| virtual void | SetProxy (const wxString &proxyhost) |
| virtual wxString | GetProxy () const |
| virtual bool | IsProxy () const |
| virtual bool | IsSynced () |
| virtual bool | IsFounderMe () const |
| virtual bool | IsFounder (const User &user) const |
| virtual int | GetMyPlayerNum () const |
| virtual int | GetPlayerNum (const User &user) const |
| virtual void | SetHostMod (const wxString &modname, const wxString &hash) |
| virtual void | SetLocalMod (const UnitSyncMod &mod) |
| virtual const UnitSyncMod & | LoadMod () |
| virtual wxString | GetHostModName () const |
| virtual wxString | GetHostModHash () const |
| virtual bool | MapExists () const |
| virtual bool | ModExists () const |
| virtual BattleStartRect | GetStartRect (unsigned int allyno) const |
| bool | IsEveryoneReady () const |
| virtual void | AddStartRect (unsigned int allyno, unsigned int left, unsigned int top, unsigned int right, unsigned int bottom) |
| virtual void | RemoveStartRect (unsigned int allyno) |
| virtual void | ResizeStartRect (unsigned int allyno) |
| virtual void | StartRectRemoved (unsigned int allyno) |
| virtual void | StartRectResized (unsigned int allyno) |
| virtual void | StartRectAdded (unsigned int allyno) |
| virtual void | ClearStartRects () |
| virtual unsigned int | GetNumRects () const |
| virtual unsigned int | GetLastRectIdx () const |
| virtual unsigned int | GetNextFreeRectIdx () const |
| virtual int | GetFreeTeam (bool excludeme=false) const |
| virtual unsigned int | GetNumBots () const |
| virtual User & | OnBotAdded (const wxString &nick, const UserBattleStatus &bs) |
| virtual UserPosition | GetFreePosition () |
| virtual int | GetFreeAlly (bool excludeme=false) const |
| virtual void | RestrictUnit (const wxString &unitname, int count=0) |
| virtual void | UnrestrictUnit (const wxString &unitname) |
| virtual void | UnrestrictAllUnits () |
| virtual std::map< wxString, int > | RestrictedUnits () const |
| virtual OptionsWrapper & | CustomBattleOptions () |
| virtual const OptionsWrapper & | CustomBattleOptions () const |
| virtual bool | LoadOptionsPreset (const wxString &name) |
| virtual void | SaveOptionsPreset (const wxString &name) |
| virtual wxString | GetCurrentPreset () |
| virtual void | DeletePreset (const wxString &name) |
| virtual wxArrayString | GetPresetList () |
| virtual std::vector< wxColour > & | GetFixColoursPalette (int numteams) const |
| virtual int | GetClosestFixColour (const wxColour &col, const std::vector< int > &excludes, int difference) const |
| virtual wxColour | GetFixColour (int i) const |
| virtual wxColour | GetFreeColour (User &for_whom) const |
| wxColour | GetFreeColour (User *for_whom=NULL) const |
| wxColour | GetNewColour () const |
| int | ColourDifference (const wxColour &a, const wxColour &b) const |
| User & | GetFounder () const |
| bool | IsFull () const |
| virtual unsigned int | GetNumPlayers () const |
| virtual unsigned int | GetNumActivePlayers () const |
| virtual unsigned int | GetNumReadyPlayers () const |
| virtual unsigned int | GetNumSyncedPlayers () const |
| virtual unsigned int | GetNumOkPlayers () const |
| virtual int | GetBattleId () const |
| virtual bool | GetGUIListActiv () const |
| virtual void | SetGUIListActiv (bool Activ) |
| virtual bool | GetInGame () const |
| virtual void | SetBattleType (BattleType type) |
| virtual BattleType | GetBattleType () |
| virtual void | SetIsLocked (const bool islocked) |
| virtual bool | IsLocked () const |
| virtual void | SetIsPassworded (const bool ispassworded) |
| virtual bool | IsPassworded () const |
| virtual void | SetNatType (const NatType nattype) |
| virtual NatType | GetNatType () const |
| virtual void | SetHostPort (unsigned int port) |
| virtual void | SetMyExternalUdpSourcePort (unsigned int port) |
| virtual unsigned int | GetMyExternalUdpSourcePort () |
| virtual void | SetMyInternalUdpSourcePort (unsigned int port) |
| virtual unsigned int | GetMyInternalUdpSourcePort () |
| virtual int | GetHostPort () const |
| virtual void | SetFounder (const wxString &nick) |
| virtual void | SetHostIp (const wxString &ip) |
| virtual wxString | GetHostIp () const |
| virtual void | SetMaxPlayers (const int &maxplayers) |
| virtual unsigned int | GetMaxPlayers () const |
| virtual void | SetSpectators (const int &spectators) |
| virtual int | GetSpectators () const |
| virtual void | SetRankNeeded (const int &rankneeded) |
| virtual int | GetRankNeeded () const |
| virtual void | SetDescription (const wxString &desc) |
| virtual wxString | GetDescription () const |
| void | SetBattleOptions (const BattleOptions &options) |
| virtual void | OnSelfLeftBattle () |
| TeamVec | GetParsedTeamsVec () |
| AllyVec | GetParsedAlliesVec () |
| void | SetParsedTeamsVec (const TeamVec &t) |
| void | SetParsedAlliesVec (const AllyVec &a) |
| const BattleOptions & | GetBattleOptions () const |
| bool | Equals (const IBattle &other) const |
| virtual void | DisableHostStatusInProxyMode (bool value) |
| virtual void | SetScript (const wxString &script) |
| virtual void | AppendScriptLine (const wxString &line) |
| virtual void | ClearScript () |
| virtual wxString | GetScript () const |
| virtual void | SetPlayBackFilePath (const wxString &path) |
| virtual wxString | GetPlayBackFilePath () const |
| virtual void | AddUserFromDemo (User &user) |
| virtual void | GetBattleFromScript (bool loadmapmod) |
| (koshi) don't delete commented things please, they might be need in the future and i'm lazy | |
| virtual bool | ShouldAutoStart () const |
| virtual std::map< int, int > | GetAllySizes () |
| virtual std::map< int, int > | GetTeamSizes () |
| virtual long | GetBattleRunningTime () const |
| void | AddUser (User &user) |
| void | RemoveUser (wxString const &nick) |
| User & | GetUser (wxString const &nick) const |
| User & | GetUser (user_map_t::size_type index) const |
| bool | UserExists (wxString const &nick) const |
| user_map_t::size_type | GetNumUsers () const |
| void | Nullify () |
Data Fields | |
| std::map< wxString, wxString > | m_script_tags |
Protected Types | |
| typedef UnitsyncReloadedSink < IBattle, GlobalEvents::GlobalEventData > | BaseType |
| typedef EventReceiverFunc < UnitsyncReloadedSink, GlobalEvents::GlobalEventData,&UnitsyncReloadedSink::OnUnitsyncReloaded > | EventReceiverFunction |
Protected Member Functions | |
| void | LoadScriptMMOpts (const wxString §ionname, const SL::PDataList &node) |
| void | LoadScriptMMOpts (const SL::PDataList &node) |
| void | PlayerLeftTeam (int team) |
| void | PlayerLeftAlly (int ally) |
| void | PlayerJoinedTeam (int team) |
| void | PlayerJoinedAlly (int ally) |
| IBattle & | asImp () |
| const IBattle & | asImp () const |
Protected Attributes | |
| std::set< wxString > | m_banned_users |
| < quick hotfix for bans | |
| std::set< wxString > | m_banned_ips |
| Server & | m_serv |
| > | |
| AutoHost | m_ah |
| bool | m_autolock_on_start |
| const int | m_id |
| bool | m_map_loaded |
| bool | m_mod_loaded |
| bool | m_map_exists |
| bool | m_mod_exists |
| UnitSyncMap | m_local_map |
| UnitSyncMod | m_local_mod |
| UnitSyncMap | m_host_map |
| UnitSyncMod | m_host_mod |
| wxString | m_previous_local_mod_name |
| std::map< wxString, int > | m_restricted_units |
| OptionsWrapper | m_opt_wrap |
| BattleOptions | m_opts |
| bool | m_ingame |
| bool | m_auto_unspec |
| bool | m_generating_script |
| std::map< unsigned int, BattleStartRect > | m_rects |
| std::map< wxString, time_t > | m_ready_up_map |
| unsigned int | m_players_ready |
| unsigned int | m_players_sync |
| unsigned int | m_players_ok |
| std::map< int, int > | m_teams_sizes |
| std::map< int, int > | m_ally_sizes |
| wxString | m_preset |
| bool | m_is_self_in |
| UserVec | m_internal_bot_list |
| wxString | m_script |
| replay&savegame stuff | |
| wxString | m_playback_file_path |
| TeamVec | m_parsed_teams |
| AllyVec | m_parsed_allies |
| UserVec | m_internal_user_list |
| wxTimer * | m_timer |
| to store users from savegame/replay | |
| long | m_start_time |
| EventReceiverFunction | OnUsync_reload |
model of a sp/mp battle
Definition at line 17 of file battle.h.
typedef std::map<int, AllyInfoContainer> IBattle::AllyVec [inherited] |
typedef AllyVec::const_iterator IBattle::AllyVecCIter [inherited] |
typedef AllyVec::iterator IBattle::AllyVecIter [inherited] |
typedef UnitsyncReloadedSink<IBattle ,GlobalEvents::GlobalEventData > UnitsyncReloadedSink< IBattle , GlobalEvents::GlobalEventData >::BaseType [protected, inherited] |
typedef EventReceiverFunc<UnitsyncReloadedSink, GlobalEvents::GlobalEventData , &UnitsyncReloadedSink::OnUnitsyncReloaded> UnitsyncReloadedSink< IBattle , GlobalEvents::GlobalEventData >::EventReceiverFunction [protected, inherited] |
typedef std::map<int, TeamInfoContainer> IBattle::TeamVec [inherited] |
typedef TeamVec::const_iterator IBattle::TeamVecCIter [inherited] |
typedef TeamVec::iterator IBattle::TeamVecIter [inherited] |
typedef user_map_t::const_iterator UserList::user_const_iter_t [inherited] |
Definition at line 16 of file userlist.h.
typedef user_map_t::iterator UserList::user_iter_t [inherited] |
iterator for user map
Definition at line 15 of file userlist.h.
typedef std::map<wxString, User*> UserList::user_map_t [inherited] |
mapping from nick to user object
Definition at line 13 of file userlist.h.
typedef std::map<wxString, User> IBattle::UserVec [inherited] |
typedef UserVec::const_iterator IBattle::UserVecCIter [inherited] |
typedef UserVec::iterator IBattle::UserVecIter [inherited] |
enum IBattle::BalanceType [inherited] |
enum IBattle::GameType [inherited] |
enum IBattle::HostInfo [inherited] |
enum IBattle::StartType [inherited] |
| Battle::Battle | ( | Server & | serv, | |
| int | id | |||
| ) |
Definition at line 37 of file battle.cpp.
| Battle::~Battle | ( | ) |
Definition at line 48 of file battle.cpp.
| void Battle::AddBot | ( | const wxString & | nick, | |
| UserBattleStatus | status | |||
| ) |
Definition at line 497 of file battle.cpp.
| void IBattle::AddStartRect | ( | unsigned int | allyno, | |
| unsigned int | left, | |||
| unsigned int | top, | |||
| unsigned int | right, | |||
| unsigned int | bottom | |||
| ) | [virtual, inherited] |
Definition at line 388 of file ibattle.cpp.
| void UserList::AddUser | ( | User & | user | ) | [inherited] |
Reimplemented in Channel.
Definition at line 16 of file userlist.cpp.
| void IBattle::AddUserFromDemo | ( | User & | user | ) | [virtual, inherited] |
Definition at line 1056 of file ibattle.cpp.
| virtual void IBattle::AppendScriptLine | ( | const wxString & | line | ) | [inline, virtual, inherited] |
Definition at line 10 of file crtpbase.h.
Definition at line 9 of file crtpbase.h.
| void Battle::Autobalance | ( | BalanceType | balance_type = balance_divide, |
|
| bool | clans = true, |
|||
| bool | strong_clans = true, |
|||
| int | allyteamsize = 0 | |||
| ) |
Definition at line 838 of file battle.cpp.
| void Battle::BattleKickPlayer | ( | User & | user | ) |
| bool Battle::CheckBan | ( | User & | user | ) |
Definition at line 448 of file battle.cpp.
| virtual void IBattle::ClearScript | ( | ) | [inline, virtual, inherited] |
| void IBattle::ClearStartRects | ( | ) | [virtual, inherited] |
Definition at line 505 of file ibattle.cpp.
| int IBattle::ColourDifference | ( | const wxColour & | a, | |
| const wxColour & | b | |||
| ) | const [inherited] |
Definition at line 151 of file ibattle.cpp.
| virtual const OptionsWrapper& IBattle::CustomBattleOptions | ( | ) | const [inline, virtual, inherited] |
| virtual OptionsWrapper& IBattle::CustomBattleOptions | ( | ) | [inline, virtual, inherited] |
| void IBattle::DeletePreset | ( | const wxString & | name | ) | [virtual, inherited] |
Definition at line 1039 of file ibattle.cpp.
| virtual void IBattle::DisableHostStatusInProxyMode | ( | bool | value | ) | [inline, virtual, inherited] |
| void Battle::DoAction | ( | const wxString & | msg | ) |
Definition at line 140 of file battle.cpp.
| bool IBattle::Equals | ( | const IBattle & | other | ) | const [inline, inherited] |
| bool Battle::ExecuteSayCommand | ( | const wxString & | cmd | ) |
quick hotfix for bans returns true if user is banned (and hence has been kicked)
Definition at line 339 of file battle.cpp.
| void Battle::FixColours | ( | ) |
Definition at line 706 of file battle.cpp.
| void Battle::FixTeamIDs | ( | BalanceType | balance_type = balance_divide, |
|
| bool | clans = true, |
|||
| bool | strong_clans = true, |
|||
| int | controlteamsize = 0 | |||
| ) |
Definition at line 993 of file battle.cpp.
| void Battle::ForceAlly | ( | User & | user, | |
| int | ally | |||
| ) |
Reimplemented from IBattle.
Definition at line 517 of file battle.cpp.
| void Battle::ForceColour | ( | User & | user, | |
| const wxColour & | col | |||
| ) |
Reimplemented from IBattle.
Definition at line 524 of file battle.cpp.
| void Battle::ForceSide | ( | User & | user, | |
| int | side | |||
| ) |
Reimplemented from IBattle.
Definition at line 504 of file battle.cpp.
| void Battle::ForceSpectator | ( | User & | user, | |
| bool | spectator | |||
| ) |
Reimplemented from IBattle.
Definition at line 531 of file battle.cpp.
| void Battle::ForceTeam | ( | User & | user, | |
| int | team | |||
| ) |
Reimplemented from IBattle.
Definition at line 510 of file battle.cpp.
| void Battle::ForceUnReadyToSpectate | ( | ) |
Definition at line 561 of file battle.cpp.
| void Battle::ForceUnsyncedAndUnreadyToSpectate | ( | ) |
Definition at line 573 of file battle.cpp.
| void Battle::ForceUnsyncedToSpectate | ( | ) |
Definition at line 549 of file battle.cpp.
| virtual std::map<int, int> IBattle::GetAllySizes | ( | ) | [inline, virtual, inherited] |
| bool Battle::GetAutoLockOnStart | ( | ) |
Definition at line 479 of file battle.cpp.
| void IBattle::GetBattleFromScript | ( | bool | loadmapmod | ) | [virtual, inherited] |
(koshi) don't delete commented things please, they might be need in the future and i'm lazy
(koshi) changed this from ServerRankContainer to RankContainer
Definition at line 1127 of file ibattle.cpp.
| virtual int IBattle::GetBattleId | ( | ) | const [inline, virtual, inherited] |
| const BattleOptions& IBattle::GetBattleOptions | ( | ) | const [inline, inherited] |
| long IBattle::GetBattleRunningTime | ( | ) | const [virtual, inherited] |
Definition at line 1293 of file ibattle.cpp.
| virtual BattleType IBattle::GetBattleType | ( | ) | [inline, virtual, inherited] |
| int IBattle::GetClosestFixColour | ( | const wxColour & | col, | |
| const std::vector< int > & | excludes, | |||
| int | difference | |||
| ) | const [virtual, inherited] |
Definition at line 179 of file ibattle.cpp.
| wxString IBattle::GetCurrentPreset | ( | ) | [virtual, inherited] |
Definition at line 1033 of file ibattle.cpp.
| virtual wxString IBattle::GetDescription | ( | ) | const [inline, virtual, inherited] |
| wxColour IBattle::GetFixColour | ( | int | i | ) | const [virtual, inherited] |
Definition at line 69 of file ibattle.cpp.
| std::vector< wxColour > & IBattle::GetFixColoursPalette | ( | int | numteams | ) | const [virtual, inherited] |
Definition at line 64 of file ibattle.cpp.
| int IBattle::GetFreeAlly | ( | bool | excludeme = false |
) | const [virtual, inherited] |
Definition at line 653 of file ibattle.cpp.
| wxColour IBattle::GetFreeColour | ( | User * | for_whom = NULL |
) | const [inherited] |
Definition at line 116 of file ibattle.cpp.
| wxColour IBattle::GetFreeColour | ( | User & | for_whom | ) | const [virtual, inherited] |
Definition at line 140 of file ibattle.cpp.
| UserPosition IBattle::GetFreePosition | ( | ) | [virtual, inherited] |
Definition at line 675 of file ibattle.cpp.
| int IBattle::GetFreeTeam | ( | bool | excludeme = false |
) | const [virtual, inherited] |
Definition at line 157 of file ibattle.cpp.
| virtual bool IBattle::GetGUIListActiv | ( | ) | const [inline, virtual, inherited] |
| virtual wxString IBattle::GetHostIp | ( | ) | const [inline, virtual, inherited] |
| wxString IBattle::GetHostMapHash | ( | ) | const [virtual, inherited] |
Definition at line 769 of file ibattle.cpp.
| wxString IBattle::GetHostMapName | ( | ) | const [virtual, inherited] |
Definition at line 763 of file ibattle.cpp.
| wxString IBattle::GetHostModHash | ( | ) | const [virtual, inherited] |
Definition at line 823 of file ibattle.cpp.
| wxString IBattle::GetHostModName | ( | ) | const [virtual, inherited] |
Definition at line 817 of file ibattle.cpp.
| virtual int IBattle::GetHostPort | ( | ) | const [inline, virtual, inherited] |
| virtual bool IBattle::GetInGame | ( | ) | const [inline, virtual, inherited] |
| unsigned int IBattle::GetLastRectIdx | ( | ) | const [virtual, inherited] |
Definition at line 484 of file ibattle.cpp.
| bool Battle::GetLockExternalBalanceChanges | ( | ) |
Definition at line 491 of file battle.cpp.
| virtual unsigned int IBattle::GetMaxPlayers | ( | ) | const [inline, virtual, inherited] |
| const User & Battle::GetMe | ( | ) | const [virtual] |
Implements IBattle.
Definition at line 156 of file battle.cpp.
| User & Battle::GetMe | ( | ) | [virtual] |
Implements IBattle.
Definition at line 151 of file battle.cpp.
| virtual unsigned int IBattle::GetMyExternalUdpSourcePort | ( | ) | [inline, virtual, inherited] |
| virtual unsigned int IBattle::GetMyInternalUdpSourcePort | ( | ) | [inline, virtual, inherited] |
| int IBattle::GetMyPlayerNum | ( | ) | const [virtual, inherited] |
Definition at line 1095 of file ibattle.cpp.
| virtual NatType IBattle::GetNatType | ( | ) | const [inline, virtual, inherited] |
| wxColour IBattle::GetNewColour | ( | ) | const [inherited] |
Definition at line 146 of file ibattle.cpp.
| unsigned int IBattle::GetNextFreeRectIdx | ( | ) | const [virtual, inherited] |
Definition at line 494 of file ibattle.cpp.
| unsigned int IBattle::GetNumActivePlayers | ( | ) | const [virtual, inherited] |
Definition at line 266 of file ibattle.cpp.
| unsigned int IBattle::GetNumBots | ( | ) | const [virtual, inherited] |
Definition at line 256 of file ibattle.cpp.
| virtual unsigned int IBattle::GetNumOkPlayers | ( | ) | const [inline, virtual, inherited] |
| unsigned int IBattle::GetNumPlayers | ( | ) | const [virtual, inherited] |
Definition at line 261 of file ibattle.cpp.
| virtual unsigned int IBattle::GetNumReadyPlayers | ( | ) | const [inline, virtual, inherited] |
| unsigned int IBattle::GetNumRects | ( | ) | const [virtual, inherited] |
Definition at line 478 of file ibattle.cpp.
| virtual unsigned int IBattle::GetNumSyncedPlayers | ( | ) | const [inline, virtual, inherited] |
| UserList::user_map_t::size_type UserList::GetNumUsers | ( | ) | const [inherited] |
Definition at line 52 of file userlist.cpp.
| AllyVec IBattle::GetParsedAlliesVec | ( | ) | [inline, inherited] |
| TeamVec IBattle::GetParsedTeamsVec | ( | ) | [inline, inherited] |
| virtual wxString IBattle::GetPlayBackFilePath | ( | ) | const [inline, virtual, inherited] |
| int IBattle::GetPlayerNum | ( | const User & | user | ) | const [virtual, inherited] |
Definition at line 76 of file ibattle.cpp.
| wxArrayString IBattle::GetPresetList | ( | ) | [virtual, inherited] |
Definition at line 1047 of file ibattle.cpp.
| wxString IBattle::GetProxy | ( | ) | const [virtual, inherited] |
Definition at line 1073 of file ibattle.cpp.
| virtual int IBattle::GetRankNeeded | ( | ) | const [inline, virtual, inherited] |
| virtual wxString IBattle::GetScript | ( | ) | const [inline, virtual, inherited] |
| virtual int IBattle::GetSpectators | ( | ) | const [inline, virtual, inherited] |
| BattleStartRect IBattle::GetStartRect | ( | unsigned int | allyno | ) | const [virtual, inherited] |
Definition at line 469 of file ibattle.cpp.
| virtual std::map<int, int> IBattle::GetTeamSizes | ( | ) | [inline, virtual, inherited] |
| User & UserList::GetUser | ( | user_map_t::size_type | index | ) | const [inherited] |
Definition at line 36 of file userlist.cpp.
Definition at line 28 of file userlist.cpp.
| bool IBattle::IsEveryoneReady | ( | ) | const [inherited] |
Definition at line 371 of file ibattle.cpp.
| bool IBattle::IsFounder | ( | const User & | user | ) | const [virtual, inherited] |
Definition at line 1083 of file ibattle.cpp.
| bool IBattle::IsFounderMe | ( | ) | const [virtual, inherited] |
Reimplemented in OfflineBattle, NoGuiSinglePlayerBattle, and SinglePlayerBattle.
Definition at line 1078 of file ibattle.cpp.
| virtual bool IBattle::IsLocked | ( | ) | const [inline, virtual, inherited] |
| virtual bool IBattle::IsPassworded | ( | ) | const [inline, virtual, inherited] |
| bool IBattle::IsProxy | ( | ) | const [virtual, inherited] |
Definition at line 1068 of file ibattle.cpp.
| bool IBattle::IsSynced | ( | ) | [virtual, inherited] |
Definition at line 52 of file ibattle.cpp.
| void Battle::Join | ( | const wxString & | password = _T("") |
) |
Definition at line 77 of file battle.cpp.
| void Battle::KickPlayer | ( | User & | user | ) |
Reimplemented from IBattle.
Definition at line 537 of file battle.cpp.
| void Battle::Leave | ( | ) |
Definition at line 84 of file battle.cpp.
| const UnitSyncMap & IBattle::LoadMap | ( | ) | [virtual, inherited] |
Definition at line 746 of file ibattle.cpp.
| void Battle::LoadMapDefaults | ( | const wxString & | mapname | ) |
Definition at line 185 of file battle.cpp.
| const UnitSyncMod & IBattle::LoadMod | ( | ) | [virtual, inherited] |
Definition at line 801 of file ibattle.cpp.
| bool IBattle::LoadOptionsPreset | ( | const wxString & | name | ) | [virtual, inherited] |
Definition at line 917 of file ibattle.cpp.
| void IBattle::LoadScriptMMOpts | ( | const SL::PDataList & | node | ) | [protected, inherited] |
Definition at line 1114 of file ibattle.cpp.
| void IBattle::LoadScriptMMOpts | ( | const wxString & | sectionname, | |
| const SL::PDataList & | node | |||
| ) | [protected, inherited] |
Definition at line 1101 of file ibattle.cpp.
| bool IBattle::MapExists | ( | ) | const [virtual, inherited] |
Definition at line 829 of file ibattle.cpp.
| bool IBattle::ModExists | ( | ) | const [virtual, inherited] |
Definition at line 836 of file ibattle.cpp.
| void UserList::Nullify | ( | ) | [inherited] |
Definition at line 57 of file userlist.cpp.
| User & IBattle::OnBotAdded | ( | const wxString & | nick, | |
| const UserBattleStatus & | bs | |||
| ) | [virtual, inherited] |
Definition at line 247 of file ibattle.cpp.
| void Battle::OnRequestBattleStatus | ( | ) |
Definition at line 90 of file battle.cpp.
| void IBattle::OnSelfLeftBattle | ( | ) | [virtual, inherited] |
Definition at line 869 of file ibattle.cpp.
| void Battle::OnTimer | ( | wxTimerEvent & | ) |
Definition at line 662 of file battle.cpp.
| void Battle::OnUnitsyncReloaded | ( | GlobalEvents::GlobalEventData | data | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 1155 of file battle.cpp.
Reimplemented from IBattle.
Definition at line 201 of file battle.cpp.
| void Battle::OnUserBattleStatusUpdated | ( | User & | user, | |
| UserBattleStatus | status | |||
| ) |
Reimplemented from IBattle.
Definition at line 237 of file battle.cpp.
| void Battle::OnUserRemoved | ( | User & | user | ) |
Reimplemented from IBattle.
Definition at line 292 of file battle.cpp.
| void IBattle::PlayerJoinedAlly | ( | int | ally | ) | [protected, inherited] |
Definition at line 564 of file ibattle.cpp.
| void IBattle::PlayerJoinedTeam | ( | int | team | ) | [protected, inherited] |
Definition at line 557 of file ibattle.cpp.
| void IBattle::PlayerLeftAlly | ( | int | ally | ) | [protected, inherited] |
Definition at line 584 of file ibattle.cpp.
| void IBattle::PlayerLeftTeam | ( | int | team | ) | [protected, inherited] |
Definition at line 571 of file ibattle.cpp.
| void IBattle::RemoveStartRect | ( | unsigned int | allyno | ) | [virtual, inherited] |
Definition at line 407 of file ibattle.cpp.
| void UserList::RemoveUser | ( | wxString const & | nick | ) | [inherited] |
Reimplemented in Channel.
Definition at line 22 of file userlist.cpp.
| void IBattle::ResizeStartRect | ( | unsigned int | allyno | ) | [virtual, inherited] |
Definition at line 420 of file ibattle.cpp.
| std::map< wxString, int > IBattle::RestrictedUnits | ( | ) | const [virtual, inherited] |
Definition at line 864 of file ibattle.cpp.
| void IBattle::RestrictUnit | ( | const wxString & | unitname, | |
| int | count = 0 | |||
| ) | [virtual, inherited] |
Definition at line 844 of file ibattle.cpp.
| void Battle::RingNotReadyPlayers | ( | ) |
Definition at line 300 of file battle.cpp.
| void Battle::RingNotSyncedAndNotReadyPlayers | ( | ) |
Definition at line 322 of file battle.cpp.
| void Battle::RingNotSyncedPlayers | ( | ) |
Definition at line 311 of file battle.cpp.
| void Battle::RingPlayer | ( | const User & | u | ) |
Definition at line 333 of file battle.cpp.
| void Battle::SaveMapDefaults | ( | ) |
Definition at line 161 of file battle.cpp.
| void IBattle::SaveOptionsPreset | ( | const wxString & | name | ) | [virtual, inherited] |
Definition at line 983 of file ibattle.cpp.
| void Battle::Say | ( | const wxString & | msg | ) |
Definition at line 134 of file battle.cpp.
| void Battle::SendHostInfo | ( | const wxString & | Tag | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 59 of file battle.cpp.
| void Battle::SendHostInfo | ( | HostInfo | update | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 53 of file battle.cpp.
| void Battle::SendMyBattleStatus | ( | ) |
Definition at line 105 of file battle.cpp.
| void Battle::SendScriptToClients | ( | ) |
quick hotfix for bans
Definition at line 592 of file battle.cpp.
| void Battle::SetAutoLockOnStart | ( | bool | value | ) |
>
Definition at line 474 of file battle.cpp.
| void Battle::SetAutoUnspec | ( | bool | value | ) |
Definition at line 1172 of file battle.cpp.
| void IBattle::SetBattleOptions | ( | const BattleOptions & | options | ) | [inline, inherited] |
| virtual void IBattle::SetBattleType | ( | BattleType | type | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetDescription | ( | const wxString & | desc | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetFounder | ( | const wxString & | nick | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetGUIListActiv | ( | bool | Activ | ) | [inline, virtual, inherited] |
| void Battle::SetHandicap | ( | User & | user, | |
| int | handicap | |||
| ) |
Reimplemented from IBattle.
Definition at line 542 of file battle.cpp.
| virtual void IBattle::SetHostIp | ( | const wxString & | ip | ) | [inline, virtual, inherited] |
TODO why not on win?
Definition at line 706 of file ibattle.cpp.
Definition at line 775 of file ibattle.cpp.
| virtual void IBattle::SetHostPort | ( | unsigned int | port | ) | [inline, virtual, inherited] |
| void Battle::SetImReady | ( | bool | ready | ) |
>
Definition at line 114 of file battle.cpp.
| void Battle::SetInGame | ( | bool | ingame | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 687 of file battle.cpp.
| virtual void IBattle::SetIsLocked | ( | const bool | islocked | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetIsPassworded | ( | const bool | ispassworded | ) | [inline, virtual, inherited] |
| void Battle::SetLocalMap | ( | const UnitSyncMap & | map | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 145 of file battle.cpp.
| void IBattle::SetLocalMod | ( | const UnitSyncMod & | mod | ) | [virtual, inherited] |
Definition at line 788 of file ibattle.cpp.
| void Battle::SetLockExternalBalanceChanges | ( | bool | value | ) |
Definition at line 484 of file battle.cpp.
| virtual void IBattle::SetMaxPlayers | ( | const int & | maxplayers | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetMyExternalUdpSourcePort | ( | unsigned int | port | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetMyInternalUdpSourcePort | ( | unsigned int | port | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetNatType | ( | const NatType | nattype | ) | [inline, virtual, inherited] |
| void IBattle::SetParsedAlliesVec | ( | const AllyVec & | a | ) | [inline, inherited] |
| void IBattle::SetParsedTeamsVec | ( | const TeamVec & | t | ) | [inline, inherited] |
| virtual void IBattle::SetPlayBackFilePath | ( | const wxString & | path | ) | [inline, virtual, inherited] |
| void IBattle::SetProxy | ( | const wxString & | proxyhost | ) | [virtual, inherited] |
Definition at line 1063 of file ibattle.cpp.
| virtual void IBattle::SetRankNeeded | ( | const int & | rankneeded | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetScript | ( | const wxString & | script | ) | [inline, virtual, inherited] |
| virtual void IBattle::SetSpectators | ( | const int & | spectators | ) | [inline, virtual, inherited] |
| bool IBattle::ShouldAutoStart | ( | ) | const [virtual, inherited] |
Definition at line 326 of file ibattle.cpp.
| void Battle::ShouldAutoUnspec | ( | ) |
Definition at line 1161 of file battle.cpp.
| void Battle::StartHostedBattle | ( | ) |
Definition at line 598 of file battle.cpp.
| void IBattle::StartRectAdded | ( | unsigned int | allyno | ) | [virtual, inherited] |
Definition at line 456 of file ibattle.cpp.
| void IBattle::StartRectRemoved | ( | unsigned int | allyno | ) | [virtual, inherited] |
Definition at line 433 of file ibattle.cpp.
| void IBattle::StartRectResized | ( | unsigned int | allyno | ) | [virtual, inherited] |
Definition at line 443 of file ibattle.cpp.
| void Battle::StartSpring | ( | ) | [virtual] |
Implements IBattle.
Definition at line 647 of file battle.cpp.
| void IBattle::UnrestrictAllUnits | ( | ) | [virtual, inherited] |
Definition at line 858 of file ibattle.cpp.
| void IBattle::UnrestrictUnit | ( | const wxString & | unitname | ) | [virtual, inherited] |
Definition at line 850 of file ibattle.cpp.
| void Battle::Update | ( | const wxString & | Tag | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 71 of file battle.cpp.
| void Battle::Update | ( | ) |
Definition at line 65 of file battle.cpp.
| bool UserList::UserExists | ( | wxString const & | nick | ) | const [inherited] |
Definition at line 47 of file userlist.cpp.
| void Battle::UserPositionChanged | ( | const User & | user | ) | [virtual] |
Reimplemented from IBattle.
Definition at line 586 of file battle.cpp.
AutoHost Battle::m_ah [protected] |
std::map<int, int> IBattle::m_ally_sizes [protected, inherited] |
bool IBattle::m_auto_unspec [protected, inherited] |
bool Battle::m_autolock_on_start [protected] |
std::set<wxString> Battle::m_banned_ips [protected] |
std::set<wxString> Battle::m_banned_users [protected] |
bool IBattle::m_generating_script [protected, inherited] |
UnitSyncMap IBattle::m_host_map [protected, inherited] |
UnitSyncMod IBattle::m_host_mod [protected, inherited] |
const int Battle::m_id [protected] |
bool IBattle::m_ingame [protected, inherited] |
UserVec IBattle::m_internal_bot_list [protected, inherited] |
UserVec IBattle::m_internal_user_list [protected, inherited] |
bool IBattle::m_is_self_in [protected, inherited] |
UnitSyncMap IBattle::m_local_map [protected, inherited] |
UnitSyncMod IBattle::m_local_mod [protected, inherited] |
bool IBattle::m_map_exists [protected, inherited] |
bool IBattle::m_map_loaded [protected, inherited] |
bool IBattle::m_mod_exists [protected, inherited] |
bool IBattle::m_mod_loaded [protected, inherited] |
OptionsWrapper IBattle::m_opt_wrap [protected, inherited] |
BattleOptions IBattle::m_opts [protected, inherited] |
AllyVec IBattle::m_parsed_allies [protected, inherited] |
TeamVec IBattle::m_parsed_teams [protected, inherited] |
wxString IBattle::m_playback_file_path [protected, inherited] |
unsigned int IBattle::m_players_ok [protected, inherited] |
unsigned int IBattle::m_players_ready [protected, inherited] |
unsigned int IBattle::m_players_sync [protected, inherited] |
wxString IBattle::m_preset [protected, inherited] |
wxString IBattle::m_previous_local_mod_name [protected, inherited] |
std::map<wxString, time_t> IBattle::m_ready_up_map [protected, inherited] |
std::map<unsigned int,BattleStartRect> IBattle::m_rects [protected, inherited] |
std::map<wxString, int> IBattle::m_restricted_units [protected, inherited] |
wxString IBattle::m_script [protected, inherited] |
std::map<wxString, wxString> IBattle::m_script_tags [inherited] |
Server& Battle::m_serv [protected] |
long IBattle::m_start_time [protected, inherited] |
std::map<int, int> IBattle::m_teams_sizes [protected, inherited] |
wxTimer* IBattle::m_timer [protected, inherited] |
EventReceiverFunction UnitsyncReloadedSink< IBattle , GlobalEvents::GlobalEventData >::OnUsync_reload [protected, inherited] |
1.6.3