CharCreateDialog Class Reference
[User interface related classes (windows, dialogs)]

#include <charcreatedialog.h>

Inheritance diagram for CharCreateDialog:

Window

List of all members.


Detailed Description

Character creation dialog.

Definition at line 45 of file charcreatedialog.h.


Public Member Functions

 CharCreateDialog (Window *parent, int slot)
 Constructor.
 ~CharCreateDialog ()
 Destructor.
void action (const gcn::ActionEvent &event)
void unlock ()
 Unlocks the dialog, enabling the create character button again.
void setAttributes (std::vector< std::string > labels, int available, int min, int max)
void setFixedGender (bool fixed, Gender gender=GENDER_FEMALE)

Private Member Functions

int getDistributedPoints () const
void updateSliders ()
std::string getName () const
 Returns the name of the character to create.
void attemptCharCreate ()
 Communicate character creation to the server.

Private Attributes

gcn::TextField * mNameField
gcn::Label * mNameLabel
gcn::Button * mNextHairColorButton
gcn::Button * mPrevHairColorButton
gcn::Label * mHairColorLabel
gcn::Button * mNextHairStyleButton
gcn::Button * mPrevHairStyleButton
gcn::Label * mHairStyleLabel
gcn::RadioButton * mMale
gcn::RadioButton * mFemale
std::vector< gcn::Slider * > mAttributeSlider
std::vector< gcn::Label * > mAttributeLabel
std::vector< gcn::Label * > mAttributeValue
gcn::Label * mAttributesLeft
int mMaxPoints
int mUsedPoints
gcn::Button * mCreateButton
gcn::Button * mCancelButton
PlayermPlayer
PlayerBoxmPlayerBox
int mSlot

Constructor & Destructor Documentation

CharCreateDialog::CharCreateDialog ( Window parent,
int  slot 
)

Constructor.

Definition at line 54 of file charcreatedialog.cpp.

CharCreateDialog::~CharCreateDialog (  ) 

Destructor.

Definition at line 143 of file charcreatedialog.cpp.


Member Function Documentation

void CharCreateDialog::action ( const gcn::ActionEvent &  event  ) 

Definition at line 151 of file charcreatedialog.cpp.

void CharCreateDialog::unlock (  ) 

Unlocks the dialog, enabling the create character button again.

Definition at line 246 of file charcreatedialog.cpp.

void CharCreateDialog::setAttributes ( std::vector< std::string >  labels,
int  available,
int  min,
int  max 
)

Definition at line 262 of file charcreatedialog.cpp.

void CharCreateDialog::setFixedGender ( bool  fixed,
Gender  gender = GENDER_FEMALE 
)

Definition at line 313 of file charcreatedialog.cpp.

int CharCreateDialog::getDistributedPoints (  )  const [private]

Definition at line 251 of file charcreatedialog.cpp.

void CharCreateDialog::updateSliders (  )  [private]

Definition at line 213 of file charcreatedialog.cpp.

std::string CharCreateDialog::getName (  )  const [private]

Returns the name of the character to create.

Definition at line 206 of file charcreatedialog.cpp.

void CharCreateDialog::attemptCharCreate (  )  [private]

Communicate character creation to the server.


Member Data Documentation

gcn::TextField* CharCreateDialog::mNameField [private]

Definition at line 85 of file charcreatedialog.h.

gcn::Label* CharCreateDialog::mNameLabel [private]

Definition at line 86 of file charcreatedialog.h.

Definition at line 87 of file charcreatedialog.h.

Definition at line 88 of file charcreatedialog.h.

gcn::Label* CharCreateDialog::mHairColorLabel [private]

Definition at line 89 of file charcreatedialog.h.

Definition at line 90 of file charcreatedialog.h.

Definition at line 91 of file charcreatedialog.h.

gcn::Label* CharCreateDialog::mHairStyleLabel [private]

Definition at line 92 of file charcreatedialog.h.

gcn::RadioButton* CharCreateDialog::mMale [private]

Definition at line 94 of file charcreatedialog.h.

gcn::RadioButton* CharCreateDialog::mFemale [private]

Definition at line 95 of file charcreatedialog.h.

std::vector<gcn::Slider*> CharCreateDialog::mAttributeSlider [private]

Definition at line 97 of file charcreatedialog.h.

std::vector<gcn::Label*> CharCreateDialog::mAttributeLabel [private]

Definition at line 98 of file charcreatedialog.h.

std::vector<gcn::Label*> CharCreateDialog::mAttributeValue [private]

Definition at line 99 of file charcreatedialog.h.

gcn::Label* CharCreateDialog::mAttributesLeft [private]

Definition at line 100 of file charcreatedialog.h.

Definition at line 102 of file charcreatedialog.h.

Definition at line 103 of file charcreatedialog.h.

gcn::Button* CharCreateDialog::mCreateButton [private]

Definition at line 105 of file charcreatedialog.h.

gcn::Button* CharCreateDialog::mCancelButton [private]

Definition at line 106 of file charcreatedialog.h.

Definition at line 108 of file charcreatedialog.h.

Definition at line 109 of file charcreatedialog.h.

int CharCreateDialog::mSlot [private]

Definition at line 111 of file charcreatedialog.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5