Wizard Engine
2D cross-platform game engine built around SDL2
 
Loading...
Searching...
No Matches
wze::animatable Class Referenceabstract

Animatable interface. More...

#include <animatable.hpp>

Inheritance diagram for wze::animatable:
wze::sprite

Public Member Functions

virtual ~animatable ()=default
 Default virtual destructor.
 
virtual bool animated () const =0
 Gets whether the object should be animated.
 
virtual void set_texture (std::shared_ptr< texture > const &texture)=0
 Sets the wze::texture of the object.
 

Detailed Description

Animatable interface.

See also
animator

Definition at line 39 of file animatable.hpp.

Member Function Documentation

◆ animated()

virtual bool wze::animatable::animated ( ) const
nodiscardpure virtual

Gets whether the object should be animated.

Returns
Whether the object should be animated.

Implemented in wze::sprite.

◆ set_texture()

virtual void wze::animatable::set_texture ( std::shared_ptr< texture > const & texture)
pure virtual

Sets the wze::texture of the object.

Parameters
texturewze::texture of the object.

Implemented in wze::sprite.


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