Ignore:
Timestamp:
May 13, 2011, 9:13:48 AM (11 years ago)
Author:
Sam Hocevar
Message:

lisp: some refactoring in chars.cpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/chars.h

    r555 r642  
    8484
    8585
    86 class character_type
     86class CharacterType
    8787{
    88 public :
     88public:
     89    CharacterType(LList *args, LSymbol *name); // lisp object describes object
     90    ~CharacterType();
     91
    8992  uint16_t ts,tiv,tv; // total states, total index vars, total local vars
    9093  sequence **seq;   // [0..ts-1]
    91   void **seq_syms;  // symbol describing what this state is [0..ts-1]
     94  LSymbol **seq_syms;  // symbol describing what this state is [0..ts-1]
    9295
    93   void **vars;  // symbol describing variable names    [0..tiv-1]
     96  LSymbol **vars;  // symbol describing variable names    [0..tiv-1]
    9497  short *var_index; // index into local var                [0..tiv-1]
    9598
    9699  void add_var(void *symbol, void *name);
    97   int add_state(void *symbol);              // returns index into seq to use
     100  int add_state(LObject *symbol);           // returns index into seq to use
    98101  int abil[TOTAL_ABILITIES];
    99102  void *fun_table[TOTAL_OFUNS];             // pointers to lisp function for this object
     
    107110  int total_fields;                         // used by game editor to replace field names
    108111  named_field **fields;
    109   character_type(void *args, void *name);   // lisp object describes object
    110112
    111113  sequence *get_sequence(character_state s);
     
    115117  void check_sizes();
    116118  long isa_var_name(char *name);
    117 
    118   ~character_type();
    119119} ;
    120120
    121 extern character_type **figures;
     121extern CharacterType **figures;
    122122int flinch_state(character_state state);
    123123
Note: See TracChangeset for help on using the changeset viewer.