pyherc.data.model

Module for Model related classes

Classes:
Model Character Damage Feat WeaponProficiency

Model

class pyherc.data.model.Model

Represents playing world

load_config()

Loads config

raise_event(event)

Relays event to creatures @param event: event to relay

Character

class pyherc.data.model.Character(action_factory)

Represents a character in playing world

act(model)

Triggers AI of this character

create_action(action_parameters)

Create an action by defined by action parameters @param action_parameters: parameters controlling creation of the action

execute_action(action_parameters)

Execute action defined by action parameters @param action_parameters: parameters controlling creation of the action

get_attack()

Return attack attribute of the character @returns: Attack value

get_body()

Get body attribute @returns: Body attribute of this character

get_finesse()

Get finesse attribute @returns: finesse attribute

get_hp()

Get current hitpoints

get_location()

Returns location of this character @returns: location

get_max_hp()

Get maximum HP this character can currently have

get_mimic_item()

Gets item this character can mimic @returns: item to mimic

get_mind()

Get mind attribute @returns: Mind attribute

identify_item(item)

Identify item @param item: item to mark as identified

is_proficient(weapon)

Check if this character is proficient with a given weapon @param weapon: weapon which proficient requirements should be checked @returns: True if proficient, otherwise False

receive_event(event)

Receives an event from world and enters it into short term memory

set_attack(attack)

Set attack attribute of the character @param attack: Attack attribute

set_body(body)

Set body attribute @param body: body attribute to set

set_finesse(finesse)

Set finesse attribute @param finesse: finesse attribute to set

set_hp(hit_points)

Set current hitpoints @param hit_points: hit points to set

set_location(location)

Sets location of this character @param location: location to set

set_mimic_item(item)

Sets item this character can mimic or pretend to be @param item: item to mimic

set_mind(mind)

Set mind attribute @param mind: mind attribute to set

Damage

class pyherc.data.model.Damage(amount=0, damage_type='bludgeoning', magic_bonus=0)

Damage done in combat

Feat

class pyherc.data.model.Feat(name=None, target=None)

Represents a feat that a character can have

WeaponProficiency

class pyherc.data.model.WeaponProficiency(weapon_type='simple', weapon_name=None)

Represents weapon proficiency feats (proficiency, focus, etc.)

MimicData

class pyherc.data.model.MimicData(character)

Represents mimicing character

get_character()

Get mimicing character @returns: Character

set_character(character)

Set character mimicing this item @param character: Character to set

Table Of Contents

Previous topic

pyherc.data.item

Next topic

pyherc.data.tiles

This Page