1 | /* |
---|
2 | * Abuse - dark 2D side-scrolling platform game |
---|
3 | * Copyright (c) 1995 Crack dot Com |
---|
4 | * Copyright (c) 2005-2011 Sam Hocevar <sam@hocevar.net> |
---|
5 | * |
---|
6 | * This software was released into the Public Domain. As with most public |
---|
7 | * domain software, no warranty is made or implied by Crack dot Com or |
---|
8 | * Jonathan Clark. |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef __DIRECTOR_HPP_ |
---|
12 | #define __DIRECTOR_HPP_ |
---|
13 | |
---|
14 | #include "timing.h" |
---|
15 | |
---|
16 | class director // the director controlls the scene |
---|
17 | { |
---|
18 | int tleft,ttop,tright,tbottom,text_y,text_step, |
---|
19 | pan_xv,pan_yv,pan_steps, |
---|
20 | frame_speed,scroll_speed,pan_speed,scene_abort; |
---|
21 | char *text; |
---|
22 | time_marker *pan_time,*frame_time,*text_time; |
---|
23 | public : |
---|
24 | void set_text_region(int left, int top, int right, int bottom) |
---|
25 | { tleft=left; ttop=top; tright=right; tbottom=bottom; } |
---|
26 | void set_frame_speed(int speed) { frame_speed=speed; } |
---|
27 | void set_scroll_speed(int speed) { scroll_speed=speed; } |
---|
28 | void set_pan_speed(int speed) { pan_speed=speed; } |
---|
29 | void set_pan(int xv, int yv, int steps) { pan_xv=xv; pan_yv=yv; pan_steps=steps; } |
---|
30 | void scroll_text(char *Text); |
---|
31 | void wait(void *arg); |
---|
32 | director(); |
---|
33 | void set_abort(int x) { scene_abort=x; } |
---|
34 | } ; |
---|
35 | |
---|
36 | extern director scene_director; |
---|
37 | |
---|
38 | |
---|
39 | #endif |
---|