source: abuse/trunk/src/include/automap.hpp @ 2

Last change on this file since 2 was 2, checked in by Sam Hocevar, 14 years ago
  • imported original 0.7.0 tarball
File size: 482 bytes
Line 
1#ifndef __AUTOMAP_HPP_
2#define __AUTOMAP_HPP_
3
4#include "jwindow.hpp"
5#include "level.hpp"
6
7class automap
8{
9  jwindow *automap_window;
10  level *cur_lev;
11  int tick,w,h;                // used to draw your position as a blinking spot
12  long old_dx,old_dy;
13public :
14  automap(level *l, int width, int height);
15  void toggle_window();
16  void handle_event(event &ev);
17  void draw();
18  ~automap() { if (automap_window) toggle_window(); }
19} ;
20
21extern automap *current_automap;
22
23#endif
24
25
Note: See TracBrowser for help on using the repository browser.