Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #ifndef HYDRA_H
  2. #define HYDRA_H
  3.  
  4. typedef struct {
  5.         int id;
  6.         int hp, blink;
  7.         double x, y;
  8.         double hsp, vsp;
  9.         double imageIndex;
  10.         int state, timer;
  11.         int patternCounter;
  12.         char onground;
  13.         char noheads;
  14.         int headid[4];
  15. } Hydra;
  16.  
  17. void createHydra(int x);
  18.  
  19. typedef struct {
  20.         int id;
  21.         int hp, blink;
  22.         int dir;
  23.         int position; //0 = lower 1 = higher
  24.         double imageIndex;
  25.         double neckRot;
  26.         int state, timer, counter;
  27.         int bodyid;
  28.         double bodyposX[7];
  29.         double bodyposY[7];
  30. } Hydrahead;
  31.  
  32. int createHydrahead(int dir, int position, int bodyid);
  33.  
  34. typedef struct {
  35.         int id;
  36.         double x, y;
  37.         double hsp, vsp;
  38.         char inwall;
  39.         char bounce;
  40.         double imageIndex;
  41. } Hydragoop;
  42.  
  43. void createHydragoop(int x, int y, int hsp, int vsp);
  44.  
  45. typedef struct {
  46.         int id;
  47.         double x, y;
  48.         double vsp;
  49.         char bounce;
  50.         double imageIndex;
  51. } Hydrarock;
  52.  
  53. void createHydrarock();
  54.  
  55. typedef struct {
  56.         int id;
  57.         int timer;
  58.         double x, y;
  59.         double angle;
  60.         double imageIndex;
  61. } Hydrashock;
  62.  
  63. void createHydrashock(int x, int y);
  64.  
  65. #endif