Rev | Line | |
---|
[56] | 1 | /* |
---|
| 2 | * Abuse - dark 2D side-scrolling platform game |
---|
| 3 | * Copyright (c) 1995 Crack dot Com |
---|
[494] | 4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
[56] | 5 | * |
---|
| 6 | * This software was released into the Public Domain. As with most public |
---|
[555] | 7 | * domain software, no warranty is made or implied by Crack dot Com, by |
---|
| 8 | * Jonathan Clark, or by Sam Hocevar. |
---|
[56] | 9 | */ |
---|
| 10 | |
---|
[2] | 11 | #ifndef __AUTOMAP_HPP_ |
---|
| 12 | #define __AUTOMAP_HPP_ |
---|
| 13 | |
---|
[481] | 14 | #include "jwindow.h" |
---|
| 15 | #include "level.h" |
---|
[2] | 16 | |
---|
| 17 | class automap |
---|
[124] | 18 | { |
---|
[120] | 19 | Jwindow *automap_window; |
---|
[2] | 20 | level *cur_lev; |
---|
| 21 | int tick,w,h; // used to draw your position as a blinking spot |
---|
| 22 | long old_dx,old_dy; |
---|
| 23 | public : |
---|
| 24 | automap(level *l, int width, int height); |
---|
| 25 | void toggle_window(); |
---|
[643] | 26 | void handle_event(Event &ev); |
---|
[2] | 27 | void draw(); |
---|
| 28 | ~automap() { if (automap_window) toggle_window(); } |
---|
| 29 | } ; |
---|
| 30 | |
---|
| 31 | extern automap *current_automap; |
---|
| 32 | |
---|
| 33 | #endif |
---|
| 34 | |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.