22 #ifndef NUVIE_CORE_PLAYER_H 23 #define NUVIE_CORE_PLAYER_H 25 #include "ultima/nuvie/core/obj_manager.h" 26 #include "ultima/nuvie/actors/actor.h" 31 #define MOVE_COST_USE 5 47 bool mapwindow_centered;
74 void update_player(
Actor *next_player);
76 bool is_mapwindow_centered()
const {
77 return mapwindow_centered;
79 void set_mapwindow_centered(
bool state);
81 bool is_in_vehicle()
const {
82 return (get_actor()->get_actor_num() == 0);
88 bool set_party_mode(
Actor *new_actor);
89 bool set_solo_mode(
Actor *new_actor);
90 bool in_party_mode()
const {
94 void set_karma(uint8 val) {
97 uint8 get_karma()
const {
100 void add_karma(uint8 val = 1);
101 void subtract_karma(uint8 val = 1);
102 void subtract_movement_points(uint8 points);
103 void add_alcohol(uint8 val = 1) {
104 alcohol = clamp_max(alcohol + val, 255);
106 void dec_alcohol(uint8 val = 1) {
114 void set_quest_flag(uint8 val) {
117 uint8 get_quest_flag()
const {
120 void set_gargish_flag(uint8 val) {
123 uint8 get_gargish_flag()
const {
127 void set_actor(
Actor *new_actor);
129 const Actor *get_actor()
const;
130 void get_location(uint16 *ret_x, uint16 *ret_y, uint8 *ret_level)
const;
131 uint8 get_location_level()
const;
133 const char *get_name();
134 void set_gender(uint8 val) {
137 const char *get_gender_title()
const;
138 uint8 get_gender()
const {
142 bool check_moveRelative(sint16 rel_x, sint16 rel_y);
143 void moveRelative(sint16 rel_x, sint16 rel_y,
bool mouse_movement =
false);
144 void try_open_door(uint16 x, uint16 y, uint8 z);
145 void move(sint16 new_x, sint16 new_y, uint8 new_level,
bool teleport);
153 uint32 get_walk_delay()
const;
154 bool check_walk_delay();
156 bool weapon_can_hit(uint16 x, uint16 y);
157 void attack_select_init(
bool use_attack_text =
true);
158 bool attack_select_next_weapon(
bool add_newline =
false,
bool use_attack_text =
true);
161 sint8 get_current_weapon()
const {
162 return current_weapon;
167 bool attack_select_weapon_at_location(sint8 location,
bool add_newline =
false,
bool use_attack_text =
true);
Definition: map_window.h:73
Definition: configuration.h:61
Definition: game_clock.h:49
Definition: actor_manager.h:42
Definition: detection.h:27
Definition: obj_manager.h:75
Definition: nuvie_io.h:32