29 #include "nomlib/gui/Cursor.hpp"
36 NOM_LOG_TRACE ( NOM );
42 NOM_LOG_TRACE ( NOM );
48 NOM_LOG_TRACE ( NOM );
53 NOM_LOG_TRACE ( NOM );
59 this->coords = other.coords;
78 return this->getPosition().x;
83 return this->getPosition().y;
Helper class for loading, positioning and keeping track of a cursor controlled by an user-defined inp...
int32 max_frames
Total number of animation frames.
Coords offsets
Source (input) coordinates – used for sprite sheet positioning.
bool locked(void) const
Getter for obtaining locked status.
virtual int32 move_right(void)
int32 scale_factor
Scale factor applied if the resize method is called.
void toggle_lock(bool toggle)
Toggle the lock variable.
Texture sprite
Object that holds our sprite image.
int32 sheet_id
The sheet's frame ID presently in use.
int32 current_frame
Current animation frame.
uint32 state
Convenience instance variable (user-defined)
enum AnimatedSprite::AnimationStatus animation_status
Status info.
AnimationTimer fps
Keeps record of our current tick and frame rate (think: frame delay)
Specialized class container for the creation of sprite sheets via RFC 4627 JSON-compliant file input...
Cursor & operator=(const Cursor &other)
Copy assignment operator.
enum AnimatedSprite::AnimationStyle animation_style
Animation playback logic.
SpriteSheet sprite_sheet
Our attached sprite sheet object.
virtual int32 move_down(void)
virtual int32 move_up(void)
virtual ~Cursor(void)
Destructor.
int32 frame_increment
Value that we increment the current_frame by.
virtual int32 move_left(void)