5#include "DSCEngine/sprites/obj_allocator.hpp"
8#include "DSCEngine/system/hardware.hpp"
28 Sprite(ObjSize size, Engine engine);
61 virtual sf24 x()
const override;
62 virtual sf24 y()
const override;
115 void set_default_allocator(
ObjAllocator* obj_allocator);
116 static void oam_deploy_main();
117 static void oam_deploy_sub();
Rectangular hitbox for 2d entities.
Definition: hitbox.hpp:15
Abstract declaration of object dependent on its 2D position
Definition: localizable.hpp:15
Definition: obj_allocator.hpp:16
Definition: obj_frame.hpp:14
OAM Object graphics handler class
Definition: obj_visual.hpp:19
Definition: sprite.hpp:13
bool is_flipped_horizontal() const
int add_frame(ObjFrame *frame)
Adds a new sprite frame.
void set_priority(int priority)
Sets sprite priority.
Engine get_engine() const
ObjVisual * get_visual() const
gets the sprite visual information
Size< char > get_size() const
gets the sprite size
virtual sf24 y() const override
void set_flip_vertical(bool is_flipped)
Sets the sprite is vertical flip state.
void set_position(sf24 x, sf24 y)
sets the sprite virtual position
void move(sf24 x, sf24 y)
moves a sprite relative to its virtual position
bool is_flipped_vertical() const
void set_flip_horizontal(bool is_flipped)
Sets the sprite is horizontal flip state.
virtual sf24 x() const override
void set_anchor(int anchor_x, int anchor_y)
Sets sprite anchor relative to hitbox.
24-bit (16.8) signed fixed floating point number
Definition: sf24.hpp:13
Localizable object definition.
Object Visual definition.
Generic point definition.
Generic point of two coordinates.
Definition: point.hpp:15
Generic size of two coordinates.
Definition: size.hpp:10