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

Last change on this file since 682 was 555, checked in by Sam Hocevar, 9 years ago

ps3: make everything compile on the PS3. Of course, nothing links yet
because so much support is missing.

  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
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, by
8 *  Jonathan Clark, or by Sam Hocevar.
9 */
10
11#ifndef __DIRECTOR_HPP_
12#define __DIRECTOR_HPP_
13
14#include "timing.h"
15
16class 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;
23public :
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
36extern director scene_director;
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.