#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "scene.h"
#include "actor.h"
#include "grid.h"
#include "main.h"
#include "lbaengine.h"
#include "dialogues.h"
#include "resources.h"
#include "music.h"
Go to the source code of this file.
Functions | |
| void | set_actor_staticflags (int actorIdx, unsigned short int staticFlags) |
| void | load_scene () |
| int | init_scene (int index) |
| void | change_scene () |
Variables | |
| unsigned char * | currentScene |
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 scene.c.
| void change_scene | ( | ) |
Definition at line 251 of file scene.c.
References currentlyFollowedActor, currentSceneIdx, currentTextBank, gameFlags, init_actor(), init_dialogue_bank(), init_grid(), init_scene(), needChangeScene, newCameraX, newCameraY, newCameraZ, play_midi_music(), sceneActors, sceneHero, sceneHeroX, sceneHeroY, sceneHeroZ, sceneMusic, sceneNumActors, ActorStruct::X, ActorStruct::Y, and ActorStruct::Z.
Referenced by run_game_engine().
| int init_scene | ( | int | index | ) |
Definition at line 230 of file scene.c.
References currentScene, hqr_entry_size(), hqr_get_entry(), HQR_SCENE_FILE, and load_scene().
Referenced by change_scene().
| void load_scene | ( | ) |
Definition at line 110 of file scene.c.
References alphaLight, ActorStruct::angle, ActorStruct::anim, ActorStruct::armor, betaLight, ActorStruct::body, ActorStruct::bonusAmount, ActorStruct::bonusParameter, ZoneBox::bottomLeft, ActorStruct::comportement, currentGameOverScene, currentScene, currentTextBank, ActorStruct::entity, ActorStruct::followedActor, ZoneBox::info0, ActorStruct::info0, SceneSamplesStruct::info0, ZoneBox::info1, ActorStruct::info1, SceneSamplesStruct::info1, ZoneBox::info2, ActorStruct::info2, SceneSamplesStruct::info2, ZoneBox::info3, ActorStruct::info3, SceneSamplesStruct::info3, ActorStruct::life, ActorStruct::lifeScript, ActorStruct::moveScript, sampleAmbience, sampleMinDelay, sampleMinDelayRnd, sampleRepeat, sampleRound, sceneActors, sceneHero, sceneHeroX, sceneHeroY, sceneHeroZ, sceneMusic, sceneNumActors, sceneNumTracks, sceneNumZones, sceneTracks, sceneZones, set_actor_staticflags(), ZoneBox::snap, ActorStruct::speed, ActorStruct::sprite, ActorStruct::strengthOfHit, ActorStruct::talkColor, ZoneBox::topRight, ZoneBox::type, ScenePoint::X, ActorStruct::X, ScenePoint::Y, ActorStruct::Y, ScenePoint::Z, and ActorStruct::Z.
Referenced by init_scene().
| void set_actor_staticflags | ( | int | actorIdx, | |
| unsigned short int | staticFlags | |||
| ) |
Definition at line 41 of file scene.c.
References StaticFlagsStruct::bCanBePushed, StaticFlagsStruct::bCanDrown, StaticFlagsStruct::bCanFall, StaticFlagsStruct::bComputeCollisionWithBricks, StaticFlagsStruct::bComputeCollisionWithObj, StaticFlagsStruct::bComputeLowCollision, StaticFlagsStruct::bDoesntCastShadow, StaticFlagsStruct::bIsCarrierActor, StaticFlagsStruct::bIsHidden, StaticFlagsStruct::bIsSpriteActor, StaticFlagsStruct::bIsZonable, StaticFlagsStruct::bUnk0100, StaticFlagsStruct::bUnk80, StaticFlagsStruct::bUseMiniZv, StaticFlagsStruct::bUsesClipping, sceneActors, and ActorStruct::staticFlags.
Referenced by load_scene().
| unsigned char* currentScene |
1.5.5