-
Notifications
You must be signed in to change notification settings - Fork 1
/
automap.h
35 lines (28 loc) · 819 Bytes
/
automap.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Abuse - dark 2D side-scrolling platform game
* Copyright (c) 1995 Crack dot Com
* Copyright (c) 2005-2011 Sam Hocevar <[email protected]>
*
* This software was released into the Public Domain. As with most public
* domain software, no warranty is made or implied by Crack dot Com, by
* Jonathan Clark, or by Sam Hocevar.
*/
#ifndef __AUTOMAP_HPP_
#define __AUTOMAP_HPP_
#include "jwindow.h"
#include "level.h"
class automap
{
Jwindow *automap_window;
level *cur_lev;
int tick,w,h; // used to draw your position as a blinking spot
long old_dx,old_dy;
public :
automap(level *l, int width, int height);
void toggle_window();
void handle_event(Event &ev);
void draw();
~automap() { if (automap_window) toggle_window(); }
} ;
extern automap *current_automap;
#endif