Sly Engine
GameObject Class Reference

A game object entity. More...

#include <GameObject.h>

Inheritance diagram for GameObject:
Inheritance graph
Collaboration diagram for GameObject:
Collaboration graph

Public Member Functions

 GameObject ()
 Default constructor. More...
 
 GameObject (const GameObject &)=delete
 Copy constructor. More...
 
 GameObject (GameObject &&)=delete
 Move constructor. More...
 
GameObjectoperator= (const GameObject &)=delete
 Assignment operator. More...
 
GameObjectoperator= (GameObject &&)=delete
 Move assignment operator. More...
 
virtual ~GameObject ()
 Deconstructor. More...
 
void SubmitEntry ()
 Submit object entry. More...
 
void SubmitExit ()
 Submit exit. More...
 
void ConnectToScene ()
 Connects to scene. More...
 
void DisconnectFromScene ()
 Disconnects from scene. More...
 
- Public Member Functions inherited from Drawable
 Drawable ()
 Default constructor. More...
 
 Drawable (const Drawable &)=delete
 Copy constructor. More...
 
 Drawable (Drawable &&)=delete
 Move constructor. More...
 
Drawableoperator= (const Drawable &)=delete
 Assignment operator. More...
 
Drawableoperator= (Drawable &&)=delete
 Move assignment operator. More...
 
virtual ~Drawable ()
 Deconstructor. More...
 
- Public Member Functions inherited from Updatable
 Updatable ()
 Default constructor. More...
 
 Updatable (const Updatable &)=delete
 Copy constructor. More...
 
 Updatable (Updatable &&)=delete
 Move constructor. More...
 
Updatableoperator= (const Updatable &)=delete
 Assignment operator. More...
 
Updatableoperator= (Updatable &&)=delete
 Move assignment operator. More...
 
virtual ~Updatable ()
 Deconstructor. More...
 
- Public Member Functions inherited from Alarmable
 Alarmable ()
 Default constructor. More...
 
 Alarmable (const Alarmable &)=delete
 Copy constructor. More...
 
 Alarmable (Alarmable &&)=delete
 Move constructor. More...
 
Alarmableoperator= (const Alarmable &)=delete
 Assignment operator. More...
 
Alarmableoperator= (Alarmable &&)=delete
 Move assignment operator. More...
 
virtual ~Alarmable ()
 Deconstructor. More...
 
- Public Member Functions inherited from Inputable
 Inputable ()
 Default constructor. More...
 
 Inputable (const Inputable &)=delete
 Copy constructor. More...
 
 Inputable (Inputable &&)=delete
 Move constructor. More...
 
Inputableoperator= (const Inputable &)=delete
 Assignment operator. More...
 
Inputableoperator= (Inputable &&)=delete
 Move assignment operator. More...
 
virtual ~Inputable ()
 Deconstructor. More...
 
- Public Member Functions inherited from Collidable
 Collidable ()
 Default constructor. More...
 
 Collidable (const Collidable &)=delete
 Copy constructor. More...
 
 Collidable (Collidable &&)=delete
 Move constructor. More...
 
Collidableoperator= (const Collidable &)=delete
 Assignment operator. More...
 
Collidableoperator= (Collidable &&)=delete
 Move assignment operator. More...
 
virtual ~Collidable ()
 Deconstructor. More...
 
CollisionVolumeBSphereGetBSphere ()
 A reference to the stored Bsphere. More...
 
CollisionVolumeGetCollisionVolume ()
 A reference. More...
 
virtual void CollisionTerrain ()
 

Private Member Functions

virtual void SceneEntry ()
 Scene entry. More...
 
virtual void SceneExit ()
 Scene exit. More...
 

Private Attributes

RegistrationState RegCurrState
 State of the register curr. More...
 
GameObjectEntryCommandpEntryCommand
 The entry command. More...
 
GameObjectExitCommandpExitCommand
 The exit command. More...
 

Friends

class GameObjectAttorney
 

Additional Inherited Members

- Public Types inherited from Inputable
enum  EVENT_TYPE { KEY_PRESS, KEY_RELEASE }
 Values that represent event types. More...
 
typedef std::pair< AZUL_KEY, EVENT_TYPEKeyEvent
 Defines an alias representing the key event. More...
 
typedef std::map< KeyEvent, InputableDataInputDataMap
 Defines an alias representing the input data map. More...
 
typedef InputDataMap::iterator InputDataRef
 Defines an alias representing the input data reference. More...
 
- Public Types inherited from Collidable
enum  VolumeType { VolumeType::BSPHERE, VolumeType::AABB, VolumeType::OBB }
 
- Public Attributes inherited from Inputable
InputDataMap inMap
 The inputable map. More...
 
- Protected Member Functions inherited from Drawable
void SubmitDrawRegistration ()
 Submit draw registration. More...
 
void SubmitDrawDeregistration ()
 Submit draw deregistration. More...
 
- Protected Member Functions inherited from Updatable
void SubmitUpdateRegistration ()
 Submit update registration. More...
 
void SubmitUpdateDeregistration ()
 Submit update deregistration. More...
 
- Protected Member Functions inherited from Alarmable
void SubmitAlarmRegistration (int id, float t)
 Submit alarm registration. More...
 
void SubmitAlarmRegistration (AlarmableManager::ALARM_ID id, float t)
 Submit alarm registration. More...
 
void SubmitAlarmDeregistration (int id)
 Submit alarm deregistration. More...
 
void SubmitAlarmDeregistration (AlarmableManager::ALARM_ID id)
 Submit alarm deregistration. More...
 
- Protected Member Functions inherited from Inputable
void SubmitKeyRegistration (AZUL_KEY inputKey, EVENT_TYPE e)
 Submit key registration. More...
 
void SubmitKeyDeregistration (AZUL_KEY inputKey, EVENT_TYPE e)
 Submit key deregistration. More...
 
- Protected Member Functions inherited from Collidable
template<typename C >
void SetCollidableGroup ()
 Sets collidable group. More...
 
void SubmitCollisionRegistration ()
 Submits the collision registration from the user's perspective. More...
 
void SubmitCollisionDeregistration ()
 Submit collision deregistration. More...
 
void SetColliderModel (Model *mod, VolumeType vol)
 Sets collider model. More...
 
void UpdateCollisionData (const Matrix &mat)
 Updates the collision data described by mat. More...
 
- Protected Attributes inherited from Collidable
CollidableGroup::CollidableCollectionRef pMyDeleteRef
 

Detailed Description

A game object entity.

All entities will derive from GameObject.

Constructor & Destructor Documentation

◆ GameObject() [1/3]

GameObject::GameObject ( )

Default constructor.

◆ GameObject() [2/3]

GameObject::GameObject ( const GameObject )
delete

Copy constructor.

◆ GameObject() [3/3]

GameObject::GameObject ( GameObject &&  )
delete

Move constructor.

◆ ~GameObject()

GameObject::~GameObject ( )
virtual

Deconstructor.

Member Function Documentation

◆ ConnectToScene()

void GameObject::ConnectToScene ( )

Connects to scene.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisconnectFromScene()

void GameObject::DisconnectFromScene ( )

Disconnects from scene.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

GameObject& GameObject::operator= ( const GameObject )
delete

Assignment operator.

◆ operator=() [2/2]

GameObject& GameObject::operator= ( GameObject &&  )
delete

Move assignment operator.

◆ SceneEntry()

void GameObject::SceneEntry ( )
privatevirtual

Scene entry.

Here is the caller graph for this function:

◆ SceneExit()

void GameObject::SceneExit ( )
privatevirtual

Scene exit.

Here is the caller graph for this function:

◆ SubmitEntry()

void GameObject::SubmitEntry ( )

Submit object entry.

Here is the call graph for this function:

◆ SubmitExit()

void GameObject::SubmitExit ( )

Submit exit.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ GameObjectAttorney

friend class GameObjectAttorney
friend

Member Data Documentation

◆ pEntryCommand

GameObjectEntryCommand* GameObject::pEntryCommand
private

The entry command.

◆ pExitCommand

GameObjectExitCommand* GameObject::pExitCommand
private

The exit command.

◆ RegCurrState

RegistrationState GameObject::RegCurrState
private

State of the register curr.


The documentation for this class was generated from the following files: