|
| | TextureObject (const Object &x, sf::Vector2f pos={ 0.f, 0.f }, sf::Vector2f scale={ 1.f, 1.f }) |
| |
| void | onResize () override |
| |
| bool | draw (sf::RenderWindow &window) override |
| |
| void | update (sf::Time &) override |
| |
| void | setColor (const sf::Color &color) |
| |
| void | setRotation (const float angle) |
| |
| const sf::Color & | getColor () const |
| |
| bool | isActive () const override |
| |
| virtual void | debugOutput (std::ostream &out) const |
| |
| | Object ()=delete |
| |
| | Object (const Object &x) |
| |
| | Object (const U_int32 ID, const std::string &path, const std::string &filename, bool transparencyM=false) |
| |
| | Object (const U_int32 ID, const std::string &path, const std::string &filename, unsigned int frames, bool transparencyM=false) |
| |
| | Object (const U_int32 ID, std::list< sf::Image > &images, const std::string &filename, bool transparencyM=false) |
| |
| virtual const sf::Vector2u & | getSize () const |
| |
| unsigned long | getNufTextures () const |
| |
| void | entryUpdate (sf::Time ¤tTime, bool low=false) override |
| |
| void | exitUpdate (sf::Time ¤tTime, bool low=false) override |
| |
| Object * | getObjectPoint () |
| |
| Object & | getObjectRef () |
| |
| const U_int32 & | getID () const |
| |
| const std::string & | getName () const |
| |
| virtual bool | isTansparent (unsigned int x, unsigned int y) |
| |
| const ObjectType & | getType () const |
| |
| unsigned int | nufC () const |
| |
| bool | operator== (const std::string &x) const |
| |
| bool | operator== (const Object &x) const |
| |
| | ~Object () override |
| |
| void | _link (std::shared_ptr< bool > _li) |
| |
| std::shared_ptr< bool > | _linkAddr () |
| |
| const std::shared_ptr< bool > | _linkAddr () const |
| |
| bool | _isLinked () const |
| |
| U_int32 | getDrawTag () const |
| |
| void | setDrawTag (const U_int32 tag) |
| |
| bool | addDrawTag (const U_int32 tag) |
| |
| bool | removeDrawTag (const U_int32 tag) |
| |
| | Drawable ()=default |
| |
| virtual | ~Drawable () |
| |
| | 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) |
| |
| 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 | setRect (const sf::IntRect &rect) |
| |
| void | addMethodRect (std::function< sf::IntRect()> method) |
| |
| void | updateRect () |
| |
| const sf::IntRect & | getRect () const |
| |
| | 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 () |
| |
|
| enum | ObjectType { ObjectType::NotInit,
ObjectType::Single,
ObjectType::Multi
} |
| |
| 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
} |
| |
| void | deleteObject () |
| |
| void | notify () |
| |
| void | drawTagDebug (std::ostream &out) const |
| |
| bool | transparency = false |
| |
| bool ** | table = nullptr |
| |
| sf::Vector2u | m_size = {0, 0} |
| |
| std::list< sf::Texture * > * | texture |
| |
| ObjectType | m_type = Object::ObjectType::NotInit |
| |
| sf::Sprite | currentSprite |
| |
| 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 |
| |
Basic MEP::Drawable element based on a single texture.
Basic type of a MEP::Drawable element in which the creation of a sf::Sprite is done via a single texture.