My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::CCarpetModelProvider Class Reference

a thin layer wrapping blocks More...

#include <CarpetModelProvider.h>

Inheritance diagram for ParaEngine::CCarpetModelProvider:
ParaEngine::CLinearModelProvider ParaEngine::IBlockModelProvider

Public Member Functions

 CCarpetModelProvider (BlockTemplate *pBlockTemplate)
 
virtual BlockModelGetBlockModel (int nIndex=0)
 get the default block model. More...
 
virtual BlockModelGetBlockModel (CBlockWorld *pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData=0, Block **neighborBlocks=NULL)
 
- Public Member Functions inherited from ParaEngine::CLinearModelProvider
 CLinearModelProvider (BlockTemplate *pBlockTemplate, int nCount=0)
 
virtual BlockModelGetBlockModelByData (uint32 nData)
 
virtual int GetModelIndex (CBlockWorld *pBlockManager, uint16_t block_id, uint16_t bx, uint16_t by, uint16_t bz, uint16_t nBlockData=0, Block **neighborBlocks=NULL)
 get block model index
 
int GetModelCount () const
 
- Public Member Functions inherited from ParaEngine::IBlockModelProvider
 IBlockModelProvider (BlockTemplate *pBlockTemplate)
 

Public Attributes

BlockModel m_block_models [22]
 

Additional Inherited Members

- Protected Attributes inherited from ParaEngine::CLinearModelProvider
int m_nModelCount
 
- Protected Attributes inherited from ParaEngine::IBlockModelProvider
BlockTemplatem_pBlockTemplate
 

Detailed Description

a thin layer wrapping blocks

Member Function Documentation

§ GetBlockModel()

BlockModel & ParaEngine::CCarpetModelProvider::GetBlockModel ( int  nIndex = 0)
virtual

get the default block model.

Parameters
nIndexmodel index default to 0

Reimplemented from ParaEngine::IBlockModelProvider.


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