Stg::BlockGroup Class Reference

#include <stage.hh>

List of all members.

Public Member Functions

void AppendBlock (Block *block)
void AppendTouchingModels (std::set< Model * > &touchers)
 BlockGroup ()
void CalcSize ()
void CallDisplayList (Model *mod)
void Clear ()
void DrawFootPrint (const Geom &geom)
void DrawSolid (const Geom &geom)
uint32_t GetCount ()
const point3_tGetOffset ()
const SizeGetSize ()
void InvalidateModelPointCache ()
void LoadBitmap (Model *mod, const std::string &bitmapfile, Worldfile *wf)
void LoadBlock (Model *mod, Worldfile *wf, int entity)
void Map (unsigned int layer)
void Rasterize (uint8_t *data, unsigned int width, unsigned int height, meters_t cellwidth, meters_t cellheight)
ModelTestCollision ()
void UnMap (unsigned int layer)
 ~BlockGroup ()

Constructor & Destructor Documentation

BlockGroup::BlockGroup ( )
BlockGroup::~BlockGroup ( )

Member Function Documentation

void BlockGroup::AppendBlock ( Block block)
void BlockGroup::AppendTouchingModels ( std::set< Model * > &  touchers)

deletes all blocks from the group

void BlockGroup::CalcSize ( )

Establish the min and max of all the blocks, so we can scale this group later.

void BlockGroup::CallDisplayList ( Model mod)
void BlockGroup::Clear ( )
void BlockGroup::DrawFootPrint ( const Geom geom)

Draw the projection of the block onto the z=0 plane.

void BlockGroup::DrawSolid ( const Geom geom)

Draw the block in OpenGL as a solid single color.

uint32_t Stg::BlockGroup::GetCount ( ) [inline]
const point3_t& Stg::BlockGroup::GetOffset ( ) [inline]
const Size& Stg::BlockGroup::GetSize ( ) [inline]
void Stg::BlockGroup::InvalidateModelPointCache ( ) [inline]
void BlockGroup::LoadBitmap ( Model mod,
const std::string &  bitmapfile,
Worldfile wf 
)
void BlockGroup::LoadBlock ( Model mod,
Worldfile wf,
int  entity 
)
void BlockGroup::Map ( unsigned int  layer)
void BlockGroup::Rasterize ( uint8_t *  data,
unsigned int  width,
unsigned int  height,
meters_t  cellwidth,
meters_t  cellheight 
)
Model * BlockGroup::TestCollision ( )

Returns a pointer to the first model detected to be colliding with a block in this group, or NULL, if none are detected.

void BlockGroup::UnMap ( unsigned int  layer)

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