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
RevLine 
[612]1/*
2 *   ORXONOX - the hottest 3D action shooter ever to exist
[1505]3 *                    > www.orxonox.net <
[612]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:
[682]23 *      Reto Grieder
[612]24 *   Co-authors:
25 *      ...
26 *
27 */
28
29/**
[1024]30  @file
31  @brief Contains all the necessary forward declarations for all classes and structs.
32*/
[612]33
[673]34#ifndef _OrxonoxPrereqs_H__
35#define _OrxonoxPrereqs_H__
[612]36
[1502]37#include "util/OrxonoxPlatform.h"
[612]38
[1024]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
[729]57
58//-----------------------------------------------------------------------
[1024]59// Forward declarations
60//-----------------------------------------------------------------------
[729]61
[1563]62namespace orxonox
63{
[1625]64    namespace LODParticle
[1563]65    {
[1625]66        enum LOD
67        {
68            off = 0,
69            low = 1,
70            normal = 2,
71            high = 3
72        };
73    }
[1563]74
[1625]75    class GraphicsEngine;
[1755]76    class Settings;
[612]77
[1625]78    class RadarViewable;
79    class Radar;
80    class RadarListener;
[1024]81
[2087]82    class CameraManager;
83    class LevelManager;
84
[1625]85    // objects
[2087]86    class Scene;
87
[2095]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
[2087]104    class WorldEntity;
[2192]105    class StaticEntity;
106    class MovableEntity;
[2087]107    class ControllableEntity;
[2192]108    class LinearEntity;
[2087]109    class Sublevel;
110
111    class Model;
112    class Billboard;
113    class BlinkingBillboard;
114    class Light;
[1625]115    class Backlight;
[2087]116    class ParticleEmitter;
117    class ParticleSpawner;
118
[1625]119    class Camera;
[2087]120    class CameraPosition;
121    class SpawnPoint;
122
123    class Spectator;
124    class Pawn;
[1625]125    class SpaceShip;
[1552]126
[2087]127    class Trigger;
128    class DistanceTrigger;
129    class EventTrigger;
[1024]130
[2096]131    class WeaponSystem;
132    class WeaponSet;
133    class WeaponSlot;
134    class Weapon;
135    class Munition;
136
[2087]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
[2303]153    // collision
154    class CollisionShape;
155    class SphereCollisionShape;
156
[1625]157    // tools
158    class BillboardSet;
159    class Light;
160    class Mesh;
161    class ParticleInterface;
162    template <class T>
163    class Timer;
[612]164
[1625]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;
[1755]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;
[1625]191}
[708]192
[1625]193namespace Ogre
194{
195    // some got forgotten in OgrePrerequisites
196    class BorderPanelOverlayElement;
197    class PanelOverlayElement;
198    class TextAreaOverlayElement;
[612]199}
200
[1755]201namespace CEGUI
202{
203    class LuaScriptModule;
204
205    class OgreCEGUIRenderer;
206    class OgreCEGUIResourceProvider;
207    class OgreCEGUITexture;
208}
209
[2192]210// Bullet Physics Engine
211
212class btRigidBody;
213class btCollisionObject;
214class btGhostObject;
[2303]215
[2192]216class btCollisionShape;
217class btSphereShape;
[2303]218class btCompoundShape;
[2192]219
[2303]220class btDiscreteDynamicsWorld;
[2192]221
[2303]222// lua
[1755]223struct lua_State;
224
[673]225#endif /* _OrxonoxPrereqs_H__ */
Note: See TracBrowser for help on using the repository browser.