![]() |
Incremental Engine
1.0.6
A 2D Game Engine to create Idle Games
|
#include <Actor.h>
Public Member Functions | |
| virtual | ~Actor () |
| virtual void | Init () |
| virtual void | Update (float dt) |
| virtual HRESULT | Draw (ID3D11DeviceContext *deviceContext) override |
| void | UpdateRecursive (float dt) |
| HRESULT | DrawRecursive (ID3D11DeviceContext *deviceContext) |
| virtual FloatRect | GetLocalBounds () |
| FloatRect | GetGlobalBounds () |
| void | Center () |
| const Transform | GetWorldTransform () |
| const D3DXVECTOR2 | GetWorldPosition () |
| const D3DXVECTOR2 | GetWorldScale () |
| const float | GetWorldRotation () |
| void | SetWorldPosition (D3DXVECTOR2 value) |
| virtual void | SetPosition (float x, float y) override |
| virtual void | SetPosition (const D3DXVECTOR2 &position) override |
| virtual const D3DXVECTOR2 & | GetPosition () const override |
| Actor * | GetParent () const |
| virtual void | SetParent (Actor *value, const bool fixWorldPosition=true) |
| void | SetActive (bool active) |
| bool | IsActive () |
Public Member Functions inherited from IncrementalEngine::Transformable | |
| Transformable () | |
| virtual void | SetScale (float factorX, float factorY) |
| virtual void | SetScale (const D3DXVECTOR2 &factors) |
| virtual void | SetOrigin (float x, float y) |
| virtual void | SetOrigin (const D3DXVECTOR2 &origin) |
| virtual void | SetRotation (float angle) |
| virtual float | GetRotation () const |
| virtual const D3DXVECTOR2 & | GetScale () const |
| virtual const D3DXVECTOR2 & | GetOrigin () const |
| void | Move (float offsetX, float offsetY) |
| void | Move (const D3DXVECTOR2 &offset) |
| void | Rotate (float angle) |
| void | Scale (float factorX, float factorY) |
| void | Scale (const D3DXVECTOR2 &factor) |
| const Transform & | GetTransform () const |
| const Transform & | GetInverseTransform () const |
Private Attributes | |
| Actor * | _parent |
| vector< Actor * > | _children |
| bool | _active |
Additional Inherited Members | |
Protected Member Functions inherited from IncrementalEngine::Drawable | |
| void | CopyParameters (Drawable *drawable) |
Protected Attributes inherited from IncrementalEngine::Transformable | |
| bool | _transformNeedUpdate |
Protected Attributes inherited from IncrementalEngine::Drawable | |
| RenderWindow * | _renderWindow |
| ShaderManager * | _shaderManager |
| ID3D11Device * | _device |
|
virtual |
|
overridevirtual |
Implements IncrementalEngine::Drawable.
Reimplemented in IncrementalEngine::Text, and IncrementalEngine::Sprite.
| HRESULT IncrementalEngine::Actor::DrawRecursive | ( | ID3D11DeviceContext * | deviceContext | ) |
| FloatRect IncrementalEngine::Actor::GetGlobalBounds | ( | ) |
|
virtual |
Reimplemented in IncrementalEngine::Text, and IncrementalEngine::Sprite.
| Actor * IncrementalEngine::Actor::GetParent | ( | ) | const |
|
overridevirtual |
| const D3DXVECTOR2 IncrementalEngine::Actor::GetWorldPosition | ( | ) |
| const float IncrementalEngine::Actor::GetWorldRotation | ( | ) |
| const D3DXVECTOR2 IncrementalEngine::Actor::GetWorldScale | ( | ) |
| const Transform IncrementalEngine::Actor::GetWorldTransform | ( | ) |
|
virtual |
| bool IncrementalEngine::Actor::IsActive | ( | ) |
| void IncrementalEngine::Actor::SetActive | ( | bool | active | ) |
|
virtual |
|
overridevirtual |
Reimplemented from IncrementalEngine::Transformable.
|
overridevirtual |
| void IncrementalEngine::Actor::SetWorldPosition | ( | D3DXVECTOR2 | value | ) |
|
virtual |
| void IncrementalEngine::Actor::UpdateRecursive | ( | float | dt | ) |