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

Last change on this file since 57 was 57, checked in by Sam Hocevar, 12 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 746 bytes
RevLine 
[56]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
[2]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.