00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 #ifndef LILITH_CREATION_INCLUDED
00091 #define LILITH_CREATION_INCLUDED
00092
00093 #include "terrainmorph.h"
00094 #include "mob.h"
00095
00096
00097 class Game : public lilith3d::FlattenMorphListener,
00098 public lilith3d::BuildingMorphListener,
00099 public lilith3d::BlasterListener
00100 {
00101 public:
00102
00103 enum {
00104 MOVE_MOB_MODE,
00105 TERRAIN_MODE,
00106 BRIDGE_MODE,
00107 BUILD_MODE,
00108 MODE_COUNT
00109 };
00110
00111 Game( lilith3d::Lilith3D* );
00112 ~Game();
00113
00114 virtual bool BlasterHit( lilith3d::BlasterSequence* blaster, const lilith3d::LilithObject& hit );
00115 virtual void BuildingMorphDone( lilith3d::BuildingMorph* flatten, lilith3d::BuildingMesh* placed );
00116 virtual void FlattenDone( lilith3d::FlattenMorph* flatten );
00117
00118
00119 void SwitchWalker( const lilith3d::MD2Resource* res );
00120
00121 int Mode() { return mode; }
00122 int SetMode( int m );
00123
00124 void EventLoop();
00125
00126 private:
00127
00128 void ProcessWalkers();
00129 void Click( const lilith3d::LilithObjectList& objList, bool left, bool shift );
00130 void Create9Test( float x, float y, float z );
00131
00132 int mode;
00133 bool buttCam;
00134 lilith3d::Lilith3D* lilith;
00135 grinliz::Vector3F startBridge;
00136
00137 std::vector< lilith3d::BuildingMesh* > building;
00138 std::vector< lilith3d::WalkingMob* > walker;
00139 lilith3d::WalkingMob* walkingMob;
00140 std::vector< lilith3d::Mesh* > testMesh;
00141 };
00142
00143
00144 #endif