source: abuse/trunk/src/automap.h @ 481

Last change on this file since 481 was 481, checked in by Sam Hocevar, 12 years ago

Fuck the history, I'm renaming all .hpp files to .h for my own sanity.

  • Property svn:keywords set to Id
File size: 741 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
[481]13#include "jwindow.h"
14#include "level.h"
[2]15
16class automap
[124]17{
[120]18  Jwindow *automap_window;
[2]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.