![]() |
Gorgon Game Engine
|
This class stores information that allows an animated pointer to be created. More...
Public Types | |
using | AnimationType = basic_AnimatedPointer< A_ > |
Public Member Functions | |
basic_PointerProvider (basic_PointerProvider &&other) | |
Move constructor. More... | |
basic_PointerProvider (const basic_PointerProvider &)=delete | |
basic_PointerProvider (Geometry::Point hotspot={0, 0}) | |
virtual | ~basic_PointerProvider () |
AnimationType & | CreateAnimation (bool create=true) const override |
Creates a pointer from this provider. More... | |
AnimationType & | CreateAnimation (Gorgon::Animation::ControllerBase &timer) const override |
Creates a pointer from this provider. More... | |
AnimationType | CreatePointer (bool create=true) const |
Creates a pointer from this provider, just a rename for CreateAnimation. More... | |
AnimationType | CreatePointer (Gorgon::Animation::Timer &timer) const |
Creates a pointer from this provider. More... | |
Geometry::Point | GetHotspot () const |
Returns the hotspot of the provider. More... | |
void | SetHotspot (Geometry::Point value) |
Sets the hotspot of the pointer. More... | |
Protected Attributes | |
Geometry::Point | hotspot |
Hotspot will be transferred to newly created pointers. More... | |
bool | owned |
Whether the animation is owned by this object. More... | |
This class stores information that allows an animated pointer to be created.
using AnimationType = basic_AnimatedPointer<A_> |
|
explicit |
basic_PointerProvider | ( | basic_PointerProvider< A_ > && | other | ) |
Move constructor.
|
delete |
|
virtual |
|
override |
Creates a pointer from this provider.
|
override |
Creates a pointer from this provider.
AnimationType CreatePointer | ( | bool | create = true | ) | const |
Creates a pointer from this provider, just a rename for CreateAnimation.
AnimationType CreatePointer | ( | Gorgon::Animation::Timer & | timer | ) | const |
Creates a pointer from this provider.
Geometry::Point GetHotspot | ( | ) | const |
Returns the hotspot of the provider.
References basic_PointerProvider< A_ >::hotspot.
void SetHotspot | ( | Geometry::Point | value | ) |
Sets the hotspot of the pointer.
References basic_PointerProvider< A_ >::hotspot.
|
protected |
Hotspot will be transferred to newly created pointers.
|
protected |
Whether the animation is owned by this object.