Ignore:
Timestamp:
Nov 10, 2005, 8:08:09 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • shitloads of long -> int32_t changes for 64 bit safety.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/include/objects.hpp

    r2 r16  
    4848public :
    4949  game_object *next,*next_active;
    50   long *lvars;
     50  int32_t *lvars;
    5151
    5252  int size();
     
    7272  void drawer();
    7373  void draw_above(view *v);
    74   void do_damage(int amount, game_object *from, long hitx, long hity, long push_xvel, long push_yvel);
    75   void damage_fun(int amount, game_object *from, long hitx, long hity, long push_xvel, long push_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);
    7676
    7777
     
    9494  int has_sequence(character_state s) { return figures[otype]->has_sequence(s); }
    9595
    96   game_object *try_move(long x, long y, long &xv, long &yv, int checks);  // 1=down,2=up,3=both
     96  game_object *try_move(int32_t x, int32_t y, int32_t &xv, int32_t &yv, int checks);  // 1=down,2=up,3=both
    9797  game_object *bmove(int &whit, game_object *exclude);  // ballestic move, return hit object,
    9898                                                        // or NULL (whit is 1 if hit wall)
     
    100100                                                                                                   
    101101  int next_picture();
    102   long x_center(); 
    103   long height();
     102  int32_t x_center(); 
     103  int32_t height();
    104104
    105105  void stop_acel() { set_xacel(0);  set_yacel(0); set_fxacel(0); set_fyacel(0); }
     
    115115  figure *current_figure() { return current_sequence()->get_figure(current_frame); }
    116116  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);
    118118  int tx(int x) { if (direction>0) return x-x_center(); else return x_center()-x; }
    119119  int ty(int y) { return y-picture()->height()+1; }
     
    134134
    135135  void change_type(int new_type);
    136   int set_var_by_name(char *name, long value);
    137   long get_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);
    138138  game_object *copy();
    139139  void change_aitype(int new_type);
     
    151151extern game_object *current_object;
    152152extern view *current_view;
    153 game_object *create(int type, long x, long y, int skip_constructor=0, int aitype=0);
     153game_object *create(int type, int32_t x, int32_t y, int skip_constructor=0, int aitype=0);
    154154int base_size();
    155155
    156156void delete_object_list(object_node *first);
    157157int          object_to_number_in_list(game_object *who, object_node *list);
    158 game_object *number_to_object_in_list(long x, object_node *list);
     158game_object *number_to_object_in_list(int32_t x, object_node *list);
    159159
    160160
Note: See TracChangeset for help on using the changeset viewer.