Ignore:
Timestamp:
Mar 18, 2008, 11:22:51 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Implement game_object::set_tint, get_tint, set_team and get_team, as well as the corresponding set_object_tint, get_object_tint, set_object_team and get_object_team LISP functions. They'll be useful for CTF mode.

Inspired by Abuse Win32 changelog from February 18, 2001:

  • Changed lisp function (set_player_color x) to

(set_object_tint x)

  • Added lisp function (get_object_tint)

Inspired by Abuse Win32 changelog from February 17, 2001:

  • Added lisp function (set_player_color x) to switch player

to color number x
see chat.lsp for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/view.hpp

    r124 r126  
    4747  int god;                                // :) if you believe in such things
    4848  int player_number;
     49  int _tint, _team;
    4950
    5051  int draw_solid;                         // -1 if don't draw solid
     
    6869
    6970  short ambient;                        // ambient lighting setting, used by draw
     71
    7072  int32_t pan_x,pan_y,no_xleft,no_xright,no_ytop,no_ybottom,
    7173       last_x,last_y,last_last_x,last_last_y,view_percent;
     
    7678
    7779  view(game_object *Focus, view *Next, int number);
     80  ~view();
     81
    7882  void draw_character_damage();           // draws the characters 'status' on the viewer
    7983
     
    116120  int32_t set_view_var_value(int num, int32_t x);
    117121  void configure_for_area(area_controller *a);
    118   ~view();
    119 } ;
     122
     123  void set_tint(int);
     124  int get_tint();
     125  void set_team(int);
     126  int get_team();
     127};
    120128
    121129extern view *player_list;
Note: See TracChangeset for help on using the changeset viewer.