source: GTP/trunk/App/Games/Jungle_Rumble/src/GameSceneLoader.h @ 1378

Revision 1378, 1.8 KB checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#pragma once
2#import <msxml.dll> named_guids
3#include "GameScene.h"
4#include "Player.h"
5class Object3d;
6class NxActorDesc;
7class NxBodyDesc;
8class Sprite;
9
10#define SPTR boost::shared_ptr
11#define WPTR boost::weak_ptr
12
13class GameSceneLoader
14{
15public:
16        GameSceneLoader(void);
17        ~GameSceneLoader(void);
18
19        bool loadGameScene(GameScene &_scene, std::string filename, GameManager *_manager);
20
21        Vector  tracePosition(MSXML::IXMLDOMNodePtr positionNode);
22        void traceSun(MSXML::IXMLDOMNodePtr sunNode);
23        void traceSkyBox(MSXML::IXMLDOMNodePtr skyBoxNode);
24        void traceTerrain(MSXML::IXMLDOMNodePtr terrainNode);
25        void traceOcean(MSXML::IXMLDOMNodePtr oceanNode);
26        void traceBullet(MSXML::IXMLDOMNodePtr bulletNode);
27        void traceWeapon(MSXML::IXMLDOMNodePtr weaponNode);
28        void tracePlayer(MSXML::IXMLDOMNodePtr playerNode);
29        void traceGoodies(MSXML::IXMLDOMNodePtr goodiesNode);
30        void traceWeaponPackage(MSXML::IXMLDOMNodePtr weaponNode);
31        void traceHealthPackage(MSXML::IXMLDOMNodePtr healthNode);
32        void traceAmoPackage(MSXML::IXMLDOMNodePtr amoNode);
33        void traceHud(MSXML::IXMLDOMNodePtr terrainNode);
34        void tracePActor(MSXML::IXMLDOMNodePtr actorNode, Object3d &obj);
35        void tracePMaterial(MSXML::IXMLDOMNodePtr materialNode);
36        void traceRenderer(MSXML::IXMLDOMNodePtr rendererNode, Node &node);
37        void traceRaytraceRenderer(MSXML::IXMLDOMNodePtr rendererNode, Node &node);
38        ParticleEmitter* traceParticleEmitter(MSXML::IXMLDOMNodePtr emitterNode);
39        Object3d* traceEnvironmentObject(MSXML::IXMLDOMNodePtr envNode);
40        Sprite* traceSprite(MSXML::IXMLDOMNodePtr spriteNode);
41        SoundNode* traceSound(MSXML::IXMLDOMNodePtr soundNode);
42
43        void addWeapon(MSXML::IXMLDOMNodePtr playerWeaponNode, Player &player);
44
45protected:
46        GameScene *scene;
47        MSXML::IXMLDOMDocumentPtr sceneDomDocument;
48        MSXML::IXMLDOMElementPtr  sceneDocRoot;
49       
50};
Note: See TracBrowser for help on using the repository browser.