Subversion Repositories Games.Rick Dangerous

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * src/e_rick.h
  3.  *
  4.  * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved.
  5.  *
  6.  * The use and distribution terms for this software are contained in the file
  7.  * named README, which can be found in the root of this distribution. By
  8.  * using this software in any fashion, you are agreeing to be bound by the
  9.  * terms of this license.
  10.  *
  11.  * You must not remove this notice, or any other, from this software.
  12.  */
  13.  
  14. #ifndef _E_RICK_H
  15. #define _E_RICK_H
  16.  
  17. #include "system.h"
  18.  
  19. #define E_RICK_NO 1
  20. #define E_RICK_ENT ent_ents[E_RICK_NO]
  21.  
  22. extern U8 e_rick_state;
  23. extern S16 e_rick_stop_x, e_rick_stop_y;
  24.  
  25. #define E_RICK_STSTOP 0x01
  26. #define E_RICK_STSHOOT 0x02
  27. #define E_RICK_STCLIMB 0x04
  28. #define E_RICK_STJUMP 0x08
  29. #define E_RICK_STZOMBIE 0x10
  30. #define E_RICK_STDEAD 0x20
  31. #define E_RICK_STCRAWL 0x40
  32.  
  33. #define E_RICK_STSET(X) e_rick_state |= (X)
  34. #define E_RICK_STRST(X) e_rick_state &= ~(X)
  35. #define E_RICK_STTST(X) (e_rick_state & (X))
  36.  
  37. extern void e_rick_save (void);
  38. extern void e_rick_restore (void);
  39. extern void e_rick_action (U8);
  40. extern void e_rick_gozombie (void);
  41. extern U8 e_rick_boxtest (U8);
  42.  
  43. #endif
  44.