#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "actor.h"
#include "lbaengine.h"
#include "scene.h"
#include "hqrdepack.h"
#include "resources.h"
Go to the source code of this file.
Functions | |
| void | preload_sprites () |
| void | init_sprite_actor (int spriteIdx, int actorIdx) |
| 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) |
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.c.
| 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 | ) |
Definition at line 145 of file actor.c.
References TimeStruct::from, lbaTime, TimeStruct::numOfStep, TimeStruct::timeOfChange, and TimeStruct::to.
| int get_real_value | ( | TimeStruct * | angleData | ) |
Definition at line 181 of file actor.c.
References TimeStruct::from, lbaTime, TimeStruct::numOfStep, TimeStruct::timeOfChange, and TimeStruct::to.
| void init_actor | ( | short int | actorIdx | ) |
Definition at line 74 of file actor.c.
References ActorStruct::angle, StaticFlagsStruct::bIsSpriteActor, DynamicFlagsStruct::bUnk0002, StaticFlagsStruct::bUsesClipping, ActorStruct::dinamicFlags, ActorStruct::entity, ActorStruct::field_78, init_sprite_actor(), ActorStruct::labelIdx, ActorStruct::lastX, ActorStruct::lastY, ActorStruct::lastZ, ActorStruct::positionInActorScript, ActorStruct::positionInMoveScript, ActorStruct::previousAnimIdx, sceneActors, set_actor_angle_safe(), ActorStruct::sprite, ActorStruct::staticFlags, ActorStruct::strengthOfHit, ActorStruct::time, ActorStruct::X, ActorStruct::Y, and ActorStruct::Z.
Referenced by change_scene().
| void init_sprite_actor | ( | int | spriteIdx, | |
| int | actorIdx | |||
| ) |
Definition at line 56 of file actor.c.
References StaticFlagsStruct::bIsSpriteActor, ZVPoint::bottomLeft, ActorStruct::boudingBox, ActorStruct::entity, sceneActors, spriteBoundingBoxPtr, ActorStruct::staticFlags, ZVPoint::topRight, ZVBox::X, ZVBox::Y, and ZVBox::Z.
Referenced by init_actor().
| void preload_sprites | ( | ) |
Definition at line 35 of file actor.c.
References hqr_entry_size(), hqr_get_entry(), hqr_num_entries(), HQR_SPRITES_FILE, spriteSizeTable, and spriteTable.
Referenced by init_resources().
| void set_actor_angle | ( | short int | startAngle, | |
| short int | endAngle, | |||
| short int | stepAngle, | |||
| TimeStruct * | timePtr | |||
| ) |
Definition at line 136 of file actor.c.
References TimeStruct::from, lbaTime, TimeStruct::numOfStep, TimeStruct::timeOfChange, and TimeStruct::to.
| void set_actor_angle_safe | ( | short int | startAngle, | |
| short int | endAngle, | |||
| short int | stepAngle, | |||
| TimeStruct * | timePtr | |||
| ) |
Definition at line 123 of file actor.c.
References TimeStruct::from, lbaTime, TimeStruct::numOfStep, TimeStruct::timeOfChange, and TimeStruct::to.
Referenced by clear_real_angle(), and init_actor().
1.5.5