Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #ifndef EFFECTS_H
  2. #define EFFECTS_H
  3.  
  4. typedef struct {
  5.         int id, type;
  6.         double x, y,
  7.                    vsp, hsp, grav,
  8.                    imageIndex, imageSpeed;
  9.                    
  10.         int cropx, cropy;
  11.         int width, height;
  12.         int image, timer;
  13.        
  14.         int visible;
  15.         int val1;
  16.         int loop, frames;
  17.         int depth;
  18. } Effect;
  19.  
  20. void createEffect(int type, int x, int y);
  21. void createEffectExtra(int t, int x, int y, double hsp, double vsp, int val);
  22.  
  23. void effectStep(Effect* e);
  24. void effectDraw(Effect* e);
  25. void effectDestroy(int id);
  26.  
  27. void createRockSmash(int x, int y);
  28. void createSplash(int x, int y);
  29. void createLavaSplash(int x, int y);
  30.  
  31. #endif