Show kposition.h syntax highlighted
/*
Copyright (C) 2003, 2004 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 __KPOSITION_H__
#define __KPOSITION_H__
#include "csgeom/quaterni.h"
#include "kquaternion.h"
#include "ikxmlreader.h"
#include "ikxmlwriter.h"
struct iEngine;
struct iGraphics3D;
struct iMaterialWrapper;
struct iMeshWrapper;
class csTransform;
struct iPolygon3D;
struct iCollideSystem;
struct iDocumentNode;
struct iKXMLReader;
struct iKXMLWriter;
class csVector3;
class BlockId;
class KFlags;
class csBox3;
class KData;
class KPosition : public iKXMLWriter, public iKXMLReader
{
private:
csRef<iString> m_name;
KQuaternion m_bodyQ;
csVector3 m_position;
public:
SCF_DECLARE_IBASE;
KPosition ();
KPosition (const char* p_name);
virtual ~KPosition ();
char* GetName ();
void SetName (const char* p_name);
void SetBodyAngle (KQuaternion const& p_q);
KQuaternion const& GetBodyAngle ();
const csVector3& GetPosition () const;
void SetPosition (const csVector3& p_vec);
//
//iKXMLWriter/Reader
bool Write (iDocumentNode* p_node) const;
bool Read (iDocumentNode* p_node);
};
#endif
See more files for this project here