Classes |
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Protected Attributes |
List of all members
ege::Environement Class Reference
Inheritance diagram for ege::Environement:
Classes | |
class | ResultNearestElement |
Public Member Functions | |
DECLARE_FACTORY (Environement) | |
void | addCamera (const std::string &_name, const ememory::SharedPtr< ege::Camera > &_camera) |
ememory::SharedPtr< ege::Camera > | getCamera (const std::string &_name) |
std::map< std::string, ememory::SharedPtr< ege::Camera > > | getCameraList () const |
void | clear () |
ememory::SharedPtr< ege::Element > | createElement (const std::string &_type, const std::string &_description, bool _autoAddElement=true) |
ememory::SharedPtr< ege::Element > | createElement (const std::string &_type, const ejson::Value &_value, bool _autoAddElement=true) |
ememory::SharedPtr< ege::Element > | createElement (const std::string &_type, const exml::Node &_node, bool _autoAddElement=true) |
ememory::SharedPtr< ege::Element > | createElement (const std::string &_type, void *_data, bool _autoAddElement=true) |
ememory::SharedPtr< ege::Element > | createElement (const std::string &_type, bool _autoAddElement=true) |
ege::physics::Engine & | getPhysicEngine () |
std::vector< ememory::SharedPtr< ege::Element > > & | getElement () |
ememory::SharedPtr< ege::Element > | getElementNearest (ememory::SharedPtr< ege::Element > _sourceRequest, float &_distance) |
void | getElementNearest (const vec3 &_sourcePosition, float _distanceMax, std::vector< ege::Environement::ResultNearestElement > &_resultList) |
void | getElementNearestFixed (const vec3 &_sourcePosition, float _distanceMax, std::vector< ege::Environement::ResultNearestElement > &_resultList) |
void | addElement (ememory::SharedPtr< ege::Element > _newElement) |
void | rmElement (ememory::SharedPtr< ege::Element > _removeElement) |
void | getOrderedElementForDisplay (std::vector< ege::Environement::ResultNearestElement > &_resultList, const vec3 &_position, const vec3 &_direction) |
void | generateInteraction (ege::ElementInteraction &_event) |
ege::ParticuleEngine & | getParticuleEngine () |
void | addStaticMeshToDraw (const ememory::SharedPtr< ege::resource::Mesh > &_mesh) |
std::vector< ememory::SharedPtr< ege::resource::Mesh > > & | getStaticMeshToDraw () |
virtual void | onChangePropertyStatus () |
Static Public Member Functions | |
static void | addCreator (const std::string &_type, ege::createElement_tf _creator) |
Public Attributes | |
esignal::Signal< float > | signalPlayTimeChange |
eproperty::List< enum gameStatus > | propertyStatus |
eproperty::Value< float > | propertyRatio |
esignal::Connection | m_periodicCallConnection |
Protected Attributes | |
std::map< std::string, ememory::SharedPtr< ege::Camera > > | m_listCamera |
int64_t | m_gameTime |
std::vector< ememory::SharedPtr< ege::resource::Mesh > > | m_listMeshToDrawFirst |
Member Function Documentation
§ addCamera()
void ege::Environement::addCamera | ( | const std::string & | _name, |
const ememory::SharedPtr< ege::Camera > & | _camera | ||
) |
Add a camera in the camera pool.
- Parameters
-
[in] _name Name of the camera. [in] _camera Pointer on the camera to add.
§ addCreator()
|
static |
add a creator element system
- Parameters
-
[in] _type Type of the element. [in] _creator Function pointer that reference the element creating.
§ addElement()
void ege::Environement::addElement | ( | ememory::SharedPtr< ege::Element > | _newElement | ) |
add an element on the list availlable.
- Parameters
-
[in] _newElement Element to add.
§ clear()
void ege::Environement::clear | ( | ) |
Remove all from the current environement.
§ createElement()
ememory::SharedPtr<ege::Element> ege::Environement::createElement | ( | const std::string & | _type, |
const std::string & | _description, | ||
bool | _autoAddElement = true |
||
) |
Create an element on the curent scene.
- Parameters
-
[in] _type Type of the element that might be created. [in] _description String that describe the content of the element properties. [in] _autoAddElement this permit to add the element if it is created == > no more action ...
- Returns
- nullptr if an error occured OR the pointer on the element and it is already added on the system.
- Note
- Pointer is return in case of setting properties on it...
§ generateInteraction()
void ege::Environement::generateInteraction | ( | ege::ElementInteraction & | _event | ) |
generate an event on all the sub element of the game == > usefull for explosion, or lazer fire ...
- Parameters
-
[in] _event event that might be apply ...
§ getCamera()
ememory::SharedPtr<ege::Camera> ege::Environement::getCamera | ( | const std::string & | _name | ) |
Get a specific camera.
- Parameters
-
[in] _name Name of the camera.
- Returns
- A pointer on the camera requested.
§ getCameraList()
|
inline |
Get List of all camera.
- Returns
- All the camera registerred.
§ getElement()
|
inline |
get a reference on the curent list of element games
- Returns
- all element list
§ getElementNearest()
ememory::SharedPtr<ege::Element> ege::Environement::getElementNearest | ( | ememory::SharedPtr< ege::Element > | _sourceRequest, |
float & | _distance | ||
) |
get the nearest Element
- Parameters
-
[in] _sourceRequest Pointer on the element that request this. [in] _distance Maximum distance search == > return the element distance
- Returns
- Pointer on the neares element OR nullptr
§ getOrderedElementForDisplay()
void ege::Environement::getOrderedElementForDisplay | ( | std::vector< ege::Environement::ResultNearestElement > & | _resultList, |
const vec3 & | _position, | ||
const vec3 & | _direction | ||
) |
§ getParticuleEngine()
|
inline |
get the particule engine reference.
- Returns
- The requested reference on the engine
§ rmElement()
void ege::Environement::rmElement | ( | ememory::SharedPtr< ege::Element > | _removeElement | ) |
remove an element on the list availlable.
- Parameters
-
[in] _removeElement Element to remove.
Member Data Documentation
§ m_gameTime
|
protected |
time of the game running
§ m_listCamera
|
protected |
list of all camera in the world
§ propertyRatio
eproperty::Value<float> ege::Environement::propertyRatio |
Speed ratio.
§ propertyStatus
eproperty::List<enum gameStatus> ege::Environement::propertyStatus |
the display is running (not in pause)
The documentation for this class was generated from the following file:
- framework/atria-soft/ege/ege/Environement.hpp