Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/physics/src/orxonox/OrxonoxPrereqs.h @ 2303

Last change on this file since 2303 was 2303, checked in by rgrieder, 15 years ago
  • Added support for attaching physical WorldEntities to each other. Currently you can only add static objects to kinematic/dynamic/static other objects. Future plans involve attaching kinematic objects to static/kinematic ones. All other combinations don't make sense at all.
  • Added CollisionShape, SphereCollisionShape and CompoundCollisionShape

Usage for collision shapes (example):

<LinearEntity collisionType="kinematic">

<attached>

<Model position="0,0,0" scale=10 mesh="ast1.mesh" />
<StaticEntity position="0,10,0" collisionType="static"> # Everything else than "static" fails!

<collisionShapes>

<SphereCollisionShape radius=40 position="10,10,-10"/>
<CompoundCollisionShape position="4,4,4"> # You can also make compound shapes directly

<SphereCollisionShape radius=10/>

</CompoundCollisionShape>

</collisionShapes>

</StaticEntity>

</attached>

</LinearEntity>

  • Property svn:eol-style set to native
File size: 4.7 KB
Line 
1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
3 *                    > www.orxonox.net <
4 *
5 *
6 *   License notice:
7 *
8 *   This program is free software; you can redistribute it and/or
9 *   modify it under the terms of the GNU General Public License
10 *   as published by the Free Software Foundation; either version 2
11 *   of the License, or (at your option) any later version.
12 *
13 *   This program is distributed in the hope that it will be useful,
14 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
15 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 *   GNU General Public License for more details.
17 *
18 *   You should have received a copy of the GNU General Public License
19 *   along with this program; if not, write to the Free Software
20 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21 *
22 *   Author:
23 *      Reto Grieder
24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
30  @file
31  @brief Contains all the necessary forward declarations for all classes and structs.
32*/
33
34#ifndef _OrxonoxPrereqs_H__
35#define _OrxonoxPrereqs_H__
36
37#include "util/OrxonoxPlatform.h"
38
39//-----------------------------------------------------------------------
40// Shared library settings
41//-----------------------------------------------------------------------
42#if (ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32) && !(defined(ORXONOX_STATIC_BUILD) || defined(ORXONOX_NO_EXPORTS))
43#  ifdef ORXONOX_SHARED_BUILD
44#    define _OrxonoxExport __declspec(dllexport)
45#  else
46#    if defined( __MINGW32__ )
47#      define _OrxonoxExport
48#    else
49#      define _OrxonoxExport __declspec(dllimport)
50#    endif
51#  endif
52#elif defined ( ORXONOX_GCC_VISIBILITY )
53#  define _OrxonoxExport  __attribute__ ((visibility("default")))
54#else
55#  define _OrxonoxExport
56#endif
57
58//-----------------------------------------------------------------------
59// Forward declarations
60//-----------------------------------------------------------------------
61
62namespace orxonox
63{
64    namespace LODParticle
65    {
66        enum LOD
67        {
68            off = 0,
69            low = 1,
70            normal = 2,
71            high = 3
72        };
73    }
74
75    class GraphicsEngine;
76    class Settings;
77
78    class RadarViewable;
79    class Radar;
80    class RadarListener;
81
82    class CameraManager;
83    class LevelManager;
84
85    // objects
86    class Scene;
87
88    class AddQuest;
89    class AddQuestHint;
90    class AddReward;
91    class ChangeQuestStatus;
92    class CompleteQuest;
93    class FailQuest;
94    class GlobalQuest;
95    class LocalQuest;
96    class Quest;
97    class QuestDescription;
98    class QuestEffect;
99    class QuestHint;
100    class QuestItem;
101    class QuestManager;
102    class Rewardable;
103
104    class WorldEntity;
105    class StaticEntity;
106    class MovableEntity;
107    class ControllableEntity;
108    class LinearEntity;
109    class Sublevel;
110
111    class Model;
112    class Billboard;
113    class BlinkingBillboard;
114    class Light;
115    class Backlight;
116    class ParticleEmitter;
117    class ParticleSpawner;
118
119    class Camera;
120    class CameraPosition;
121    class SpawnPoint;
122
123    class Spectator;
124    class Pawn;
125    class SpaceShip;
126
127    class Trigger;
128    class DistanceTrigger;
129    class EventTrigger;
130
131    class WeaponSystem;
132    class WeaponSet;
133    class WeaponSlot;
134    class Weapon;
135    class Munition;
136
137    class EventListener;
138    class EventDispatcher;
139    class EventTarget;
140
141    class Controller;
142    class HumanController;
143
144    class Info;
145    class Level;
146    class PlayerInfo;
147    class HumanPlayer;
148
149    class Gametype;
150
151    class Scores;
152
153    // collision
154    class CollisionShape;
155    class SphereCollisionShape;
156
157    // tools
158    class BillboardSet;
159    class Light;
160    class Mesh;
161    class ParticleInterface;
162    template <class T>
163    class Timer;
164
165    // overlays
166    class BarColour;
167    class DebugFPSText;
168    class DebugRTRText;
169    class HUDBar;
170    class HUDNavigation;
171    class HUDRadar;
172    class HUDSpeedBar;
173    class InGameConsole;
174    class OrxonoxOverlay;
175    class OverlayGroup;
176    class OverlayText;
177
178    //gui
179    class GUIManager;
180
181    // game states
182    class GSRoot;
183    class GSGraphics;
184    class GSIO;
185    class GSIOConsole;
186    class GSLevel;
187    class GSStandalone;
188    class GSServer;
189    class GSClient;
190    class GSGUI;
191}
192
193namespace Ogre
194{
195    // some got forgotten in OgrePrerequisites
196    class BorderPanelOverlayElement;
197    class PanelOverlayElement;
198    class TextAreaOverlayElement;
199}
200
201namespace CEGUI
202{
203    class LuaScriptModule;
204
205    class OgreCEGUIRenderer;
206    class OgreCEGUIResourceProvider;
207    class OgreCEGUITexture;
208}
209
210// Bullet Physics Engine
211
212class btRigidBody;
213class btCollisionObject;
214class btGhostObject;
215
216class btCollisionShape;
217class btSphereShape;
218class btCompoundShape;
219
220class btDiscreteDynamicsWorld;
221
222// lua
223struct lua_State;
224
225#endif /* _OrxonoxPrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.