source: abuse/trunk/src/automap.hpp @ 120

Last change on this file since 120 was 120, checked in by Sam Hocevar, 12 years ago
File size: 746 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#ifndef __AUTOMAP_HPP_
11#define __AUTOMAP_HPP_
12
13#include "jwindow.hpp"
14#include "level.hpp"
15
16class automap
17{
18  Jwindow *automap_window;
19  level *cur_lev;
20  int tick,w,h;                // used to draw your position as a blinking spot
21  long old_dx,old_dy;
22public :
23  automap(level *l, int width, int height);
24  void toggle_window();
25  void handle_event(event &ev);
26  void draw();
27  ~automap() { if (automap_window) toggle_window(); }
28} ;
29
30extern automap *current_automap;
31
32#endif
33
34
Note: See TracBrowser for help on using the repository browser.