Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #ifndef KNIGHT_H
  2. #define KNIGHT_H
  3.  
  4. #include "../collision.h"
  5.  
  6. typedef struct {
  7.         int id, type;
  8.         double x, y,
  9.                    vsp, grav;
  10.         int dir, state, timer;
  11.         double imageIndex;
  12.         int hp, invincible;
  13.         int shieldhit;
  14.        
  15.         Mask mask;
  16. } Knight;
  17.  
  18. void createKnight(int x, int y, int type);
  19.  
  20. void knightStep(Knight* k);
  21. void knightDraw(Knight* k);
  22.  
  23. #endif