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

#include <GameApi.hh>

Inheritance diagram for GameApi::WorldObj:
Collaboration diagram for GameApi::WorldObj:

Classes

struct  Var

Public Member Functions

 WorldObj (EveryApi &ev, std::function< P(int)> f, int numvalues, BM bm, float dx, float dy, SH sh)
 ~WorldObj ()
void set_block (int x, int y, int c)
int read_block (int x, int y) const
void set_anim_time (int x, int y, float time)
void prepare (bool keep=false)
void set_range (int x, int y, int sx, int sy)
P collect ()
void render_outline (SH sh_new)
void render ()
void set_pos (float pos_x, float pos_y, float pos_z)
void set_scale (float mult_x, float mult_y, float mult_z)
void set_rotation_y (float angle)
void set_rotation_matrix (M m)
void set_rotation_matrix2 (M m)
void bind_texture (int num_id, TXID id_)
void bind_texarray (TXA id)
void set_anim_frame (int id)
void pick_object1 (float x, float y, float &xx, float &yy, float &zz)
bool pick_object2 (float mouse_x, float mouse_y, float radius, int scr_x, int scr_y, M in_P, int x, int y)
void set_var (std::string name, float r, float g, float b, float a)
void clear_child_var (int x, int y)
void set_child_var (int x, int y, std::string name, float r, float g, float b, float a)
void set_outline (int x, int y, bool b, SH sh3)
Public Member Functions inherited from GameApi::RenderObject
virtual ~RenderObject ()
Public Member Functions inherited from GameApi::MoveScaleObject3d
virtual ~MoveScaleObject3d ()

Constructor & Destructor Documentation

◆ WorldObj()

GameApi::WorldObj::WorldObj ( EveryApi & ev,
std::function< P(int)> f,
int numvalues,
BM bm,
float dx,
float dy,
SH sh )
inline

◆ ~WorldObj()

GameApi::WorldObj::~WorldObj ( )
inline

Member Function Documentation

◆ bind_texarray()

void GameApi::WorldObj::bind_texarray ( TXA id)
inline

◆ bind_texture()

void GameApi::WorldObj::bind_texture ( int num_id,
TXID id_ )
inline

◆ clear_child_var()

void GameApi::WorldObj::clear_child_var ( int x,
int y )
inline

◆ collect()

P GameApi::WorldObj::collect ( )
inline

◆ pick_object1()

void GameApi::WorldObj::pick_object1 ( float x,
float y,
float & xx,
float & yy,
float & zz )
inline

◆ pick_object2()

bool GameApi::WorldObj::pick_object2 ( float mouse_x,
float mouse_y,
float radius,
int scr_x,
int scr_y,
M in_P,
int x,
int y )
inline

◆ prepare()

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

Implements GameApi::RenderObject.

Here is the caller graph for this function:

◆ read_block()

int GameApi::WorldObj::read_block ( int x,
int y ) const
inline
Here is the caller graph for this function:

◆ render()

void GameApi::WorldObj::render ( )
inlinevirtual

Implements GameApi::RenderObject.

Here is the caller graph for this function:

◆ render_outline()

void GameApi::WorldObj::render_outline ( SH sh_new)
inline

◆ set_anim_frame()

void GameApi::WorldObj::set_anim_frame ( int id)
inline

◆ set_anim_time()

void GameApi::WorldObj::set_anim_time ( int x,
int y,
float time )
inline

◆ set_block()

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

◆ set_child_var()

void GameApi::WorldObj::set_child_var ( int x,
int y,
std::string name,
float r,
float g,
float b,
float a )
inline

◆ set_outline()

void GameApi::WorldObj::set_outline ( int x,
int y,
bool b,
SH sh3 )
inline

◆ set_pos()

void GameApi::WorldObj::set_pos ( float pos_x,
float pos_y,
float pos_z )
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_range()

void GameApi::WorldObj::set_range ( int x,
int y,
int sx,
int sy )
inline

◆ set_rotation_matrix()

void GameApi::WorldObj::set_rotation_matrix ( M m)
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_rotation_matrix2()

void GameApi::WorldObj::set_rotation_matrix2 ( M m)
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_rotation_y()

void GameApi::WorldObj::set_rotation_y ( float angle)
inline

◆ set_scale()

void GameApi::WorldObj::set_scale ( float mult_x,
float mult_y,
float mult_z )
inlinevirtual

Implements GameApi::MoveScaleObject3d.

Here is the caller graph for this function:

◆ set_var()

void GameApi::WorldObj::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: