Show kblock.h syntax highlighted
/*
Copyright (C) 2003, 2004, 2005 by Luca Cappa
Written by Luca Cappa groton@users.sourceforge.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __KBLOCK_H__
#define __KBLOCK_H__
#include "kblockid.h"
struct iEngine;
struct iGraphics3D;
struct iMaterialWrapper;
struct iMeshWrapper;
class csTransform;
struct iPolygon3D;
struct iPolygon3DStatic;
struct iCollideSystem;
class scfString;
class csVector3;
class KBlockId;
class KFlags;
SCF_VERSION (KBlock, 0, 0, 1);
class KBlock : public csObject
{
protected:
csRef<iEngine> m_engine;
csRef<iGraphics3D> m_g3d;
csRef<iMeshWrapper> m_meshW;
csRef<iString> m_name;
bool CreateQuadYZ (iThingFactoryState*, iMaterialWrapper*,const csVector3&,const csVector3&);
bool CreateQuadXY (iThingFactoryState*, iMaterialWrapper*,const csVector3&,const csVector3&);
bool CreateQuadXZ (iThingFactoryState*, iMaterialWrapper*,const csVector3&,const csVector3&);
bool CreateQuadAny (iThingFactoryState*, iMaterialWrapper*,const csVector3&,const csVector3&);
bool CreateQuadAny (iThingFactoryState*, iMaterialWrapper*, const csVector3&,
const csVector3&, const csVector3&, const csVector3&);
void RotateMeshY(iMeshWrapper*,int);
public:
KBlock ();
virtual ~KBlock();
const KBlockId m_blockId;
KFlags* m_flag;
void Create (const KBlockId&, iMaterialWrapper&, iMaterialWrapper&);
void HardTransform (const csTransform&);
iMeshWrapper* GetMeshWrapper ();
const char* GetName ();
void SetName (const char*);
SCF_DECLARE_IBASE_EXT (csObject);
};
#endif // __KBLOCK_H__
See more files for this project here