home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 June / Game.EXE_06_2002.iso / Alawar / src / Level.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-04-26  |  841 b   |  42 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, int number);
  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.     bool operator!()const
  23.     {
  24.         return error;
  25.     }
  26.     int get_dot_count()const;
  27. private:    
  28.     Creatures external_creatures;
  29.     Creatures creatures;
  30.     Array2D < Cell * > cells;
  31.     Scene2D * const scene;
  32.  
  33.     Animation2D wall_size_anim;
  34.     bool error;
  35.  
  36.     Coord pacman_start;
  37.     Coord monster_start;
  38.  
  39.     bool load_level( const char * level_name );
  40. };
  41.  
  42. #endif //LEVEL_H