![]() |
Middle Europe Productions Library
alpha 1.3.3
|
Basically the SFML sprite with the support for the MEP functionalities. More...
#include <Sprite.h>
Public Member Functions | |
| Sprite (const FollowType &followType, sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }) | |
| Sprite (sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }) | |
| Sprite & | operator<< (const Sprite &x) |
| sf::Sprite & | getSprite () |
| void | updateSprite (sf::Texture &texture) |
| virtual void | updateSprite () |
| void | setPosition (const sf::Vector2f pos) override |
| void | setPosition (const Following &x) override |
| virtual void | setScale (const sf::Vector2f scale) |
| virtual void | setScale (const Following &x) |
| void | setColor (const sf::Color &color) override |
| void | setRect (const sf::IntRect &rect) |
| void | addMethodRect (std::function< sf::IntRect()> method) |
| void | updateRect () |
| const sf::IntRect & | getRect () const |
| const sf::Color & | getColor () const override |
Public Member Functions inherited from MEP::Following | |
| Following (const FollowType &followType, sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f posFixed={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }, sf::Vector2f scaleFixed={ 1.f, 1.f }) | |
| Following (sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f posFixed={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }, sf::Vector2f scaleFixed={ 1.f, 1.f }) | |
| Following (const Following &x) | |
| void | updatePosition () |
| void | addMethodPos (std::function< sf::Vector2f()> method) |
| void | updateScale () |
| void | addMethodScale (std::function< sf::Vector2f()> method) |
| Following & | operator<< (const Following &x) |
| void | setFollow (const AnimationPosition &base, const FollowType type, MEP::U_int32 group=-1) |
| void | setFollow (const AnimationColor &base, MEP::U_int32 toFollow=MEP::ColorChannel::ALL, MEP::U_int32 group=-1) |
| void | muteFollowGroup (MEP::U_int32 group) |
| void | unMuteFollowGroup (MEP::U_int32 group) |
| void | fullMuteFollow () |
| void | fullUnMuteFollow () |
| virtual void | movePosition (const sf::Vector2f pos) |
| sf::Vector2f | getPosition () const |
| sf::Vector2f | getScale () const |
| sf::Vector2f | getOriginPosition () const |
| sf::Vector2f | getOriginScale () const |
| bool | isFollowerActive () const |
| void | followingDebug (std::ostream &out, const char *skipLines="") const |
| void | clearFollow () |
Protected Attributes | |
| sf::Sprite | currentSprite |
Protected Attributes inherited from MEP::Following | |
| std::function< sf::Vector2f()> | calc_position = [this]()->sf::Vector2f { return m_pos; } |
| std::function< sf::Vector2f()> | calc_scale = [this]()->sf::Vector2f { return m_scale; } |
| MEPtools::GroupManager< Follow, std::unique_ptr< Follow >, std::list< std::unique_ptr< Follow > > > | followingListv2 |
| sf::Vector2f | m_pos = {0.f, 0.f} |
| sf::Vector2f | m_posMove = { 0.f, 0.f } |
| sf::Vector2f | m_posFixed = { 0.f, 0.f } |
| sf::Vector2f | m_scale = { 1.f, 1.f } |
| sf::Vector2f | m_scaleFixed = { 1.f, 1.f } |
| sf::Color | m_color |
| sf::Color | m_colorFixed |
Additional Inherited Members | |
Public Types inherited from MEP::Following | |
| enum | FollowType { FollowType::NotInit = 0, FollowType::Objects = 1, FollowType::X_Scale = 2, FollowType::Y_Scale = 3, FollowType::X_Pos = 4, FollowType::Y_Pos = 5, FollowType::Color = 6 } |
Basically the SFML sprite with the support for the MEP functionalities.
|
inline |
|
inline |
|
inline |
Adds a method of calculation the scale.
| [in] | method | : A method of calculating the position. |
|
inlineoverridevirtual |
Outputs the color of a master sprite.
Reimplemented from MEP::Following.
Reimplemented in MEP::TextureObject.
|
inline |
Outputs the rect.
|
inline |
Outputs the sf::Sprite objects in case you want to commit any advanced changes which are not supported by the MEP.
|
inlineoverridevirtual |
Changes the color of a master sprite.
| [in] | color | : Color. |
Reimplemented from MEP::Following.
Reimplemented in MEP::TextureObject.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
Sets the main sprite Rect
|
inlinevirtual |
Sets the scale.
| [in] | pos | : MEP::Following object. |
Reimplemented from MEP::Following.
Reimplemented in MEP::AnimationObject.
|
inlinevirtual |
Sets the scale.
| [in] | scale | : Scale. |
Reimplemented from MEP::Following.
Reimplemented in MEP::AnimationObject.
|
inline |
Updates the rect of the Sprite
|
inlinevirtual |
Updates the set of sprite variables according to the following elements.
|
inline |
Updates the set of sprite variables and it's texture according to the following elements and given texture.
|
protected |
Current sprite ready to bo rendered;