Changeset 16 for abuse/trunk/src/include/objects.hpp
- Timestamp:
- Nov 10, 2005, 8:08:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/include/objects.hpp
r2 r16 48 48 public : 49 49 game_object *next,*next_active; 50 long*lvars;50 int32_t *lvars; 51 51 52 52 int size(); … … 72 72 void drawer(); 73 73 void draw_above(view *v); 74 void do_damage(int amount, game_object *from, long hitx, long hity, long push_xvel, longpush_yvel);75 void damage_fun(int amount, game_object *from, long hitx, long hity, long push_xvel, longpush_yvel);74 void do_damage(int amount, game_object *from, int32_t hitx, int32_t hity, int32_t push_xvel, int32_t push_yvel); 75 void damage_fun(int amount, game_object *from, int32_t hitx, int32_t hity, int32_t push_xvel, int32_t push_yvel); 76 76 77 77 … … 94 94 int has_sequence(character_state s) { return figures[otype]->has_sequence(s); } 95 95 96 game_object *try_move( long x, long y, long &xv, long&yv, int checks); // 1=down,2=up,3=both96 game_object *try_move(int32_t x, int32_t y, int32_t &xv, int32_t &yv, int checks); // 1=down,2=up,3=both 97 97 game_object *bmove(int &whit, game_object *exclude); // ballestic move, return hit object, 98 98 // or NULL (whit is 1 if hit wall) … … 100 100 101 101 int next_picture(); 102 longx_center();103 longheight();102 int32_t x_center(); 103 int32_t height(); 104 104 105 105 void stop_acel() { set_xacel(0); set_yacel(0); set_fxacel(0); set_fyacel(0); } … … 115 115 figure *current_figure() { return current_sequence()->get_figure(current_frame); } 116 116 int total_frames() { return current_sequence()->length(); } 117 void picture_space( long &x1, long &y1,long &x2, long&y2);117 void picture_space(int32_t &x1, int32_t &y1,int32_t &x2, int32_t &y2); 118 118 int tx(int x) { if (direction>0) return x-x_center(); else return x_center()-x; } 119 119 int ty(int y) { return y-picture()->height()+1; } … … 134 134 135 135 void change_type(int new_type); 136 int set_var_by_name(char *name, longvalue);137 longget_var_by_name(char *name, int &error);136 int set_var_by_name(char *name, int32_t value); 137 int32_t get_var_by_name(char *name, int &error); 138 138 game_object *copy(); 139 139 void change_aitype(int new_type); … … 151 151 extern game_object *current_object; 152 152 extern view *current_view; 153 game_object *create(int type, long x, longy, int skip_constructor=0, int aitype=0);153 game_object *create(int type, int32_t x, int32_t y, int skip_constructor=0, int aitype=0); 154 154 int base_size(); 155 155 156 156 void delete_object_list(object_node *first); 157 157 int object_to_number_in_list(game_object *who, object_node *list); 158 game_object *number_to_object_in_list( longx, object_node *list);158 game_object *number_to_object_in_list(int32_t x, object_node *list); 159 159 160 160
Note: See TracChangeset
for help on using the changeset viewer.