source: abuse/trunk/src/director.h @ 484

Last change on this file since 484 was 481, checked in by Sam Hocevar, 11 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: 1.1 KB
Line 
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
10#ifndef __DIRECTOR_HPP_
11#define __DIRECTOR_HPP_
12
13#include "timing.h"
14
15class director        // the director controlls the scene
16{
17  int tleft,ttop,tright,tbottom,text_y,text_step,
18      pan_xv,pan_yv,pan_steps,
19      frame_speed,scroll_speed,pan_speed,scene_abort;
20  char *text;
21  time_marker *pan_time,*frame_time,*text_time;
22public :
23  void set_text_region(int left, int top, int right, int bottom)
24  { tleft=left; ttop=top; tright=right; tbottom=bottom; }
25  void set_frame_speed(int speed) { frame_speed=speed; }
26  void set_scroll_speed(int speed) { scroll_speed=speed; }
27  void set_pan_speed(int speed) { pan_speed=speed; }
28  void set_pan(int xv, int yv, int steps) { pan_xv=xv; pan_yv=yv; pan_steps=steps; }
29  void scroll_text(char *Text);
30  void wait(void *arg);
31  director();
32  void set_abort(int x) { scene_abort=x; }
33} ;
34
35extern director scene_director;
36
37
38#endif
Note: See TracBrowser for help on using the repository browser.