home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 May / Game.EXE_05_2002.iso / Alawar / src / Level.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-08  |  738 b   |  36 lines

  1. #ifndef LEVEL_H
  2. #define LEVEL_H
  3.  
  4. #include "Creatures.h"
  5. #include <Array2D.h>
  6. #include <2D/Animation2D.h>
  7. class Position;
  8. class Cell;
  9. //class Scene2D;
  10.  
  11. class Level
  12. {
  13. public:
  14.     Level(Scene2D * scene);
  15.     virtual ~Level();
  16.  
  17.     bool next_direction( Creature * creature, Direction direction );
  18.     void life_cycle(float delta_time);
  19.     void add_external_creature(Creature * cre);
  20.     void move( Creature * creature, const String & where );
  21.     int get_cell_size()const;
  22. private:    
  23.     Creatures external_creatures;
  24.     Creatures creatures;
  25.     Array2D < Cell * > cells;
  26.     Scene2D * const scene;
  27.  
  28.     Animation2D wall_size_anim;
  29.  
  30.     Coord pacman_start;
  31.     Coord monster_start;
  32.  
  33.     bool load_level( const char * level_name );
  34. };
  35.  
  36. #endif //LEVEL_H