D:/WorkAround/prequengine/trunk/src/actor.h File Reference

This file contains scene actor routines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  TimeStruct
struct  ZVPoint
struct  ZVBox
struct  AnimTimerDataStruct
struct  StaticFlagsStruct
struct  DynamicFlagsStruct
struct  ActorStruct

Defines

#define NUM_SPRITES   200

Functions

void preload_sprites ()
void init_actor (short int actorIdx)
void set_actor_angle_safe (short int startAngle, short int endAngle, short int stepAngle, TimeStruct *timePtr)
void clear_real_angle (ActorStruct *ptr)
void set_actor_angle (short int startAngle, short int endAngle, short int stepAngle, TimeStruct *timePtr)
int get_real_angle (TimeStruct *angleData)
int get_real_value (TimeStruct *angleData)

Variables

unsigned char * spriteTable [NUM_SPRITES]
unsigned int spriteSizeTable [NUM_SPRITES]
short int processActorX
short int processActorY
short int processActorZ


Detailed Description

This file contains scene actor routines.

Prequengine: a Little Big Adventure engine

Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file actor.h.


Define Documentation

#define NUM_SPRITES   200

Total number of sprites allowed in the game

Definition at line 29 of file actor.h.


Function Documentation

void clear_real_angle ( ActorStruct ptr  ) 

Definition at line 131 of file actor.c.

References ActorStruct::angle, set_actor_angle_safe(), and ActorStruct::time.

int get_real_angle ( TimeStruct angleData  ) 

int get_real_value ( TimeStruct angleData  ) 

void init_actor ( short int  actorIdx  ) 

void preload_sprites (  ) 

void set_actor_angle ( short int  startAngle,
short int  endAngle,
short int  stepAngle,
TimeStruct timePtr 
)

void set_actor_angle_safe ( short int  startAngle,
short int  endAngle,
short int  stepAngle,
TimeStruct timePtr 
)


Variable Documentation

short int processActorX

Definition at line 170 of file actor.h.

short int processActorY

Definition at line 171 of file actor.h.

short int processActorZ

Definition at line 172 of file actor.h.

unsigned int spriteSizeTable[NUM_SPRITES]

Table with all loaded sprite sizes

Definition at line 34 of file actor.h.

Referenced by preload_sprites().

unsigned char* spriteTable[NUM_SPRITES]

Table with all loaded sprites

Definition at line 32 of file actor.h.

Referenced by preload_sprites(), and process_drawing().


Generated on Thu Sep 18 14:14:47 2008 for Prequengine by  doxygen 1.5.5