Character Class

Information about the Character class.

Member Attributes

Member Methods

getActionBlock

Description: Returns a selected inter-personal action. If the chosen action is not interpersonal, a blank dict will be returned.

Note: This is a placeholder, and should be implemented in a derived class.

Returns: The action that the character will use.

Raise: NotImplementedError If not implemented.


getReactionBlock

Description: Returns a selected reaction. If the chosen action is not interpersonal, a blank dict will be returned.

Note: This is a placeholder, and should be implemented in a derived class.

Returns: The reaction to be used.

Raise: NotImplementedError If not implemented.


preTurn

Description: This method is called before _update. It doesn't need to be implemented, but it might help with things like status effects.


postTurn

Description: This method is called at the very end of the turn. It doesn't need to be implemented.


setPosition

Description: Sets the position. Specify however many coordinates you need, up to 3.

Postcondition: The position member variable is altered to refled the change.

Parameters:

isDead

Description: Returns Whether or not the character is dead.

Returns: true if HP < = 0, False otherwise.