AddBotDialog Class Reference

used in SP/MP BattletAB to present choice of AIs to add More...

#include <addbotdialog.h>

Inherits WindowAttributesPickle.

Collaboration diagram for AddBotDialog:
Collaboration graph
[legend]

Public Member Functions

 AddBotDialog (wxWindow *parent, IBattle &battle, bool singleplayer=false)
 ~AddBotDialog ()
wxString GetNick ()
wxString GetAIShortName ()
wxString GetAiRawName ()
wxString GetAIVersion ()
int GetAIType ()
void ReloadAIList ()
void ShowAIInfo ()
void OnClose (wxCommandEvent &event)
void OnAddBot (wxCommandEvent &event)
void OnSelectBot (wxCommandEvent &event)
void OnOptionActivate (wxListEvent &event)
void UpdateOption (const wxString &Tag)
long AddMMOptionsToList (long pos, int optFlag)
void ShowAIOptions ()

Protected Types

enum  { ADDBOT_ADD = wxID_HIGHEST, ADDBOT_CANCEL, ADDBOT_AI, ADDBOT_OPTIONLIST }
typedef std::map< wxString, long > OptionListMap

Protected Member Functions

 AddBotDialog (const AddBotDialog &)
wxString RefineAIName (const wxString &name)
void SaveAttributes ()
void LoadAttributes ()

Protected Attributes

wxStaticText * m_nick_lbl
wxTextCtrl * m_nick
wxStaticText * m_ai_lbl
wxChoice * m_ai
wxStaticLine * m_buttons_sep
wxButton * m_cancel_btn
wxButton * m_add_btn
wxListCtrl * m_ai_infos_lst
wxListCtrl * m_opts_list
OptionListMap m_opt_list_map
wxBoxSizer * m_main_sizer
wxBoxSizer * m_info_sizer
IBattlem_battle
wxArrayString m_ais
bool m_sp

Detailed Description

used in SP/MP BattletAB to present choice of AIs to add

Todo:
DOCMEMORE

Definition at line 21 of file addbotdialog.h.


Member Typedef Documentation

typedef std::map<wxString, long> AddBotDialog::OptionListMap [protected]

Definition at line 60 of file addbotdialog.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
ADDBOT_ADD 
ADDBOT_CANCEL 
ADDBOT_AI 
ADDBOT_OPTIONLIST 

Definition at line 75 of file addbotdialog.h.


Constructor & Destructor Documentation

AddBotDialog::AddBotDialog ( wxWindow *  parent,
IBattle battle,
bool  singleplayer = false 
)

Definition at line 31 of file addbotdialog.cpp.

AddBotDialog::~AddBotDialog (  ) 

Definition at line 129 of file addbotdialog.cpp.

AddBotDialog::AddBotDialog ( const AddBotDialog  )  [protected]

Member Function Documentation

long AddBotDialog::AddMMOptionsToList ( long  pos,
int  optFlag 
)

Definition at line 263 of file addbotdialog.cpp.

wxString AddBotDialog::GetAiRawName (  ) 

Definition at line 181 of file addbotdialog.cpp.

wxString AddBotDialog::GetAIShortName (  ) 

Definition at line 140 of file addbotdialog.cpp.

int AddBotDialog::GetAIType (  ) 

Definition at line 156 of file addbotdialog.cpp.

wxString AddBotDialog::GetAIVersion (  ) 

Definition at line 148 of file addbotdialog.cpp.

wxString AddBotDialog::GetNick (  ) 

Definition at line 132 of file addbotdialog.cpp.

void WindowAttributesPickle::LoadAttributes (  )  [protected, inherited]

Definition at line 13 of file windowattributespickle.cpp.

void AddBotDialog::OnAddBot ( wxCommandEvent &  event  ) 

Definition at line 217 of file addbotdialog.cpp.

void AddBotDialog::OnClose ( wxCommandEvent &  event  ) 

Definition at line 211 of file addbotdialog.cpp.

void AddBotDialog::OnOptionActivate ( wxListEvent &  event  ) 

Definition at line 301 of file addbotdialog.cpp.

void AddBotDialog::OnSelectBot ( wxCommandEvent &  event  ) 

Definition at line 224 of file addbotdialog.cpp.

wxString AddBotDialog::RefineAIName ( const wxString name  )  [protected]

Definition at line 161 of file addbotdialog.cpp.

void AddBotDialog::ReloadAIList (  ) 

Definition at line 187 of file addbotdialog.cpp.

void WindowAttributesPickle::SaveAttributes (  )  [protected, inherited]

Definition at line 28 of file windowattributespickle.cpp.

void AddBotDialog::ShowAIInfo (  ) 

Definition at line 230 of file addbotdialog.cpp.

void AddBotDialog::ShowAIOptions (  ) 

Definition at line 250 of file addbotdialog.cpp.

void AddBotDialog::UpdateOption ( const wxString Tag  ) 

Definition at line 278 of file addbotdialog.cpp.


Field Documentation

wxButton* AddBotDialog::m_add_btn [protected]

Definition at line 56 of file addbotdialog.h.

wxChoice* AddBotDialog::m_ai [protected]

Definition at line 53 of file addbotdialog.h.

wxListCtrl* AddBotDialog::m_ai_infos_lst [protected]

Definition at line 57 of file addbotdialog.h.

wxStaticText* AddBotDialog::m_ai_lbl [protected]

Definition at line 52 of file addbotdialog.h.

wxArrayString AddBotDialog::m_ais [protected]

Definition at line 69 of file addbotdialog.h.

Definition at line 67 of file addbotdialog.h.

wxStaticLine* AddBotDialog::m_buttons_sep [protected]

Definition at line 54 of file addbotdialog.h.

wxButton* AddBotDialog::m_cancel_btn [protected]

Definition at line 55 of file addbotdialog.h.

wxBoxSizer* AddBotDialog::m_info_sizer [protected]

Definition at line 64 of file addbotdialog.h.

wxBoxSizer* AddBotDialog::m_main_sizer [protected]

Definition at line 63 of file addbotdialog.h.

wxTextCtrl* AddBotDialog::m_nick [protected]

Definition at line 51 of file addbotdialog.h.

wxStaticText* AddBotDialog::m_nick_lbl [protected]

Definition at line 50 of file addbotdialog.h.

Definition at line 61 of file addbotdialog.h.

wxListCtrl* AddBotDialog::m_opts_list [protected]

Definition at line 58 of file addbotdialog.h.

bool AddBotDialog::m_sp [protected]

Definition at line 71 of file addbotdialog.h.


The documentation for this class was generated from the following files:

Generated on Thu Dec 29 00:11:42 2011 for SpringLobby by doxygen 1.6.3