ScummVM API documentation
Ultima::Nuvie::Player Class Reference

Public Member Functions

 Player (const Configuration *cfg)
 
bool init (ObjManager *om, ActorManager *am, MapWindow *mw, GameClock *c, Party *p)
 
void init ()
 
bool load (NuvieIO *objlist)
 
bool save (NuvieIO *objlist)
 
Actorfind_actor ()
 
void update_player (Actor *next_player)
 
bool is_mapwindow_centered () const
 
void set_mapwindow_centered (bool state)
 
bool is_in_vehicle () const
 
Partyget_party ()
 
bool set_party_mode (Actor *new_actor)
 
bool set_solo_mode (Actor *new_actor)
 
bool in_party_mode () const
 
void set_karma (uint8 val)
 
uint8 get_karma () const
 
void add_karma (uint8 val=1)
 
void subtract_karma (uint8 val=1)
 
void subtract_movement_points (uint8 points)
 
void add_alcohol (uint8 val=1)
 
void dec_alcohol (uint8 val=1)
 
void set_quest_flag (uint8 val)
 
uint8 get_quest_flag () const
 
void set_gargish_flag (uint8 val)
 
uint8 get_gargish_flag () const
 
void set_actor (Actor *new_actor)
 
Actorget_actor ()
 
const Actorget_actor () const
 
void get_location (uint16 *ret_x, uint16 *ret_y, uint8 *ret_level) const
 
uint8 get_location_level () const
 
const char * get_name ()
 
void set_gender (uint8 val)
 
const char * get_gender_title () const
 
uint8 get_gender () const
 
bool check_moveRelative (sint16 rel_x, sint16 rel_y)
 
void moveRelative (sint16 rel_x, sint16 rel_y, bool mouse_movement=false)
 
void try_open_door (uint16 x, uint16 y, uint8 z)
 
void move (sint16 new_x, sint16 new_y, uint8 new_level, bool teleport)
 
void moveLeft ()
 
void moveRight ()
 
void moveUp ()
 
void moveDown ()
 
void pass ()
 
void repairShip ()
 
uint32 get_walk_delay () const
 
bool check_walk_delay ()
 
bool weapon_can_hit (uint16 x, uint16 y)
 
void attack_select_init (bool use_attack_text=true)
 
bool attack_select_next_weapon (bool add_newline=false, bool use_attack_text=true)
 
void attack (MapCoord target, Actor *target_actor)
 
sint8 get_current_weapon () const
 

Protected Member Functions

bool attack_select_weapon_at_location (sint8 location, bool add_newline=false, bool use_attack_text=true)
 

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