Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #ifndef PLATFORM_H
  2. #define PLATFORM_H
  3.  
  4. #include "collision.h"
  5.  
  6. typedef struct {
  7.         int id, type; //0 = moving platform
  8.         double x, y;
  9.         int xstart, ystart;
  10.         int xend, yend;
  11.         int state;
  12.         double spd;
  13.         int timer;
  14.         int secret, visible;
  15.        
  16.         Mask mask;
  17. } Platform;
  18.  
  19. void createPlatform(int type, int xstart, int ystart, int xend, int yend, int spd, int secret);
  20.  
  21. void platformStep(Platform* p);
  22. void platformDraw(Platform* p);
  23.  
  24. void platformDestroy(int id);
  25.  
  26. #endif