GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi::SpriteWorldObj Class Reference

#include <GameApi.hh>

Inheritance diagram for GameApi::SpriteWorldObj:
Collaboration diagram for GameApi::SpriteWorldObj:

Public Member Functions

 SpriteWorldObj (EveryApi &ev, std::function< BM(int)> f, int numvalues, BM int_bm, int dx, int dy, SH sh)
 ~SpriteWorldObj ()
void set_block (int x, int y, int c)
int read_block (int x, int y)
void set_range (int l, int t, int width, int height)
void prepare (bool keep=false)
void render ()
void set_pos (float p_x, float p_y)
void set_scale (float m_x, float m_y)
int get_pos_x (float mouse_x) const
int get_pos_y (float mouse_y) const
void set_var (std::string name, float r, float g, float b, float a)
Public Member Functions inherited from GameApi::RenderObject
virtual ~RenderObject ()
Public Member Functions inherited from GameApi::MoveScaleObject2d
virtual ~MoveScaleObject2d ()

Constructor & Destructor Documentation

◆ SpriteWorldObj()

GameApi::SpriteWorldObj::SpriteWorldObj ( EveryApi & ev,
std::function< BM(int)> f,
int numvalues,
BM int_bm,
int dx,
int dy,
SH sh )
inline

◆ ~SpriteWorldObj()

GameApi::SpriteWorldObj::~SpriteWorldObj ( )
inline

Member Function Documentation

◆ get_pos_x()

int GameApi::SpriteWorldObj::get_pos_x ( float mouse_x) const
inline
Here is the caller graph for this function:

◆ get_pos_y()

int GameApi::SpriteWorldObj::get_pos_y ( float mouse_y) const
inline
Here is the caller graph for this function:

◆ prepare()

void GameApi::SpriteWorldObj::prepare ( bool keep = false)
inlinevirtual

Implements GameApi::RenderObject.

Here is the caller graph for this function:

◆ read_block()

int GameApi::SpriteWorldObj::read_block ( int x,
int y )
inline

◆ render()

void GameApi::SpriteWorldObj::render ( )
inlinevirtual

Implements GameApi::RenderObject.

Here is the caller graph for this function:

◆ set_block()

void GameApi::SpriteWorldObj::set_block ( int x,
int y,
int c )
inline
Here is the caller graph for this function:

◆ set_pos()

void GameApi::SpriteWorldObj::set_pos ( float p_x,
float p_y )
inlinevirtual

Implements GameApi::MoveScaleObject2d.

Here is the caller graph for this function:

◆ set_range()

void GameApi::SpriteWorldObj::set_range ( int l,
int t,
int width,
int height )
inline

◆ set_scale()

void GameApi::SpriteWorldObj::set_scale ( float m_x,
float m_y )
inlinevirtual

◆ set_var()

void GameApi::SpriteWorldObj::set_var ( std::string name,
float r,
float g,
float b,
float a )
inlinevirtual

Implements GameApi::RenderObject.


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