Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #ifndef LOLIDRA_H
  2. #define LOLIDRA_H
  3.  
  4. #include "../collision.h"
  5.  
  6. typedef struct {
  7.         int id;
  8.         double x, y;
  9.         double positionY;
  10.         double imageIndex, hoverRot;
  11.         int hp, state, invincible,
  12.                 visible, timer, counter;
  13.        
  14.         Mask mask;
  15. } Lolidra;
  16.  
  17. void createLolidra(int x, int y);
  18.  
  19. void lolidraStep(Lolidra* l);
  20. void lolidraDraw(Lolidra* l);
  21.  
  22. //Minion
  23. typedef struct {
  24.         int id;
  25.         int state;
  26.         int timer;
  27.         double x, y;
  28.         double positionY;
  29.         double imageIndex;
  30.         double dir, spd;
  31.        
  32.         Mask mask;
  33. } Minion;
  34.  
  35. void createMinion(int x, int y);
  36.  
  37. void minionStep(Minion* m);
  38. void minionDraw(Minion* m);
  39.  
  40. #endif