29 #ifndef _SpaceBoundaries_H__ 30 #define _SpaceBoundaries_H__ 80 void setMaxDistance(
float r);
81 float getMaxDistance();
83 void setWarnDistance(
float r);
84 float getWarnDistance();
86 void setShowDistance(
float r);
87 float getShowDistance();
89 void setHealthDecrease(
float amount);
90 float getHealthDecrease();
92 void setReaction(
int mode);
97 virtual void tick(
float dt)
override;
122 void displayBoundaries(
Pawn *item,
float alpha);
123 void conditionalBounceBack(
Pawn *item,
float currentDistance,
float dt);
124 void bounceBack(
Pawn *item, Vector3 *
normal, Vector3 *velocity);
125 bool isHumanPlayer(
Pawn *item);
129 void positionBillboard(
const Vector3& position,
float alpha);
130 void setBillboardOptions(
Billboard *billy);
131 void removeAllBillboards();
#define _ObjectsExport
Definition: ObjectsPrereqs.h:60
Everything in Orxonox that has a health attribute is a Pawn.
Definition: Pawn.h:56
The StaticEntity is the simplest derivative of the orxonox::WorldEntity class.
Definition: StaticEntity.h:50
Declaration of the Tickable interface.
bool usedYet
Definition: SpaceBoundaries.h:100
The Scripts' code is executed through the CommandExecutor.
::std::string string
Definition: gtest-port.h:756
std::list< WeakPtr< Pawn > > pawnsIn_
List of the pawns that this instance of SpaceBoundaries has to handle.
Definition: SpaceBoundaries.h:103
Definition of WeakPtr<T>, wraps a pointer to an object.
SpaceBoundaries gives level creators the possibility to bar Pawns from leaving a defined area (until ...
Definition: SpaceBoundaries.h:74
The WorldEntity represents everything that can be put in a Scene at a certain location.
Definition: WorldEntity.h:72
xmlelement
Definition: Super.h:519
Definition: Billboard.h:43
int reaction_
Values: 0, 1, 2.
Definition: SpaceBoundaries.h:107
float healthDecrease_
Rate of health loss.
Definition: SpaceBoundaries.h:115
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
float showDistance_
Distance at which the boundaries are displayed.
Definition: SpaceBoundaries.h:113
Definition: SpaceBoundaries.h:100
Mode
Definition: CorePrereqs.h:102
std::vector< BillboardAdministration > billboards_
Definition: SpaceBoundaries.h:105
Shared library macros, enums, constants and forward declarations for the objects module ...
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
float warnDistance_
Distance in which a warning is displayed.
Definition: SpaceBoundaries.h:112