| Trees | Indices | Help |
|---|
|
|
object --+
|
common.listeners.key_listener.KeyListener --+
|
object --+ |
| |
common.listeners.mouse_listener.MouseListener --+
|
object --+ |
| |
common.listeners.command_listener.CommandListener --+
|
controllerbase.ControllerBase --+
|
CharacterCreationController
Controller defining the behaviour of the character creation screen.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
MAX_TRAITS = 3
|
|||
MIN_AGE = 16
|
|||
MAX_AGE = 40
|
|||
ORIGINS = {"None": None,}
|
|||
GENDERS = ["Male", "Female",]
|
|||
PICTURES = {"Male": ["None",], "Female": ["None",],}
|
|||
TRAITS = {}
|
|||
|
|||
|
Inherited from |
|||
|
|||
Construct a new CharacterCreationController instance.
|
Create the new character and start a new game.
|
Exit the character creation view and return the to main menu.
|
Called when the controller is removed from the list.
|
Returns the name of the character.
|
Returns the age of the character.
|
Returns the gender of the character.
|
Returns the origin of the character.
|
Returns the ID of the current picture of the character.
|
Increases the given statistic by one.
|
Calculate and return the cost to increase the statistic
|
Checks whether the given statistic can be increased or not.
|
Decreases the given statistic by one.
|
Calculate and return the gain of decreasing the statistic
|
Checks whether the given statistic can be decreased or not.
|
Returns the value of the given statistic.
|
Sets the name of the character to the given value.
|
Checks whether the name is valid.
|
Changes the origin of the character to the given value.
|
Checks whether the origin is valid.
|
Changes the gender of the character to the given value.
|
Checks whether the gender is valid.
|
Sets the age of the character to the given value.
|
Checks whether the age is valid.
|
Set picture of the character.
|
Checks whether the picture is valid.
|
Adds a trait to the character.
|
Checks whether another trait can be added.
|
Remove trait from character.
|
Checks whether the character has the trait.
|
Checks whether the trait is valid.
|
Checks whether the characters traits are valid.
|
Checks whether the character as a whole is valid.
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Mon Aug 15 17:19:43 2011 | http://epydoc.sourceforge.net |