Mercurial > hg > Members > e075743
diff src/CollisionObject.h @ 10:5727d511a13a
add src in Martial Project Xcode.
author | tokumoritaichirou@nw0743.st.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 03 Feb 2010 03:39:04 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/CollisionObject.h Wed Feb 03 03:39:04 2010 +0900 @@ -0,0 +1,31 @@ +/* + * CollisionObject.h + * Martial + * + * Created by ryoma on 10/01/26. + * Copyright 2010 琉球大学. All rights reserved. + * + */ + +/*! + @class CollisionObject + @abstract 衝突判定が適用されるクラス。 CollisionNodeをリストで保持している。 +*/ + +#ifndef _COLLISION_OBJECT_H_ +#define _COLLISION_OBJECT_H_ + +#include <MovableObject.h> +#include <CollisionNode.h> + +class CollisionObject : public MovableObject { + protected: + osg::NodePath* nodePath; + std::list<CollisionNode*> collisionNodeList; + public: + CollisionObject(char* name = "CollisionObject") : MovableObject::MovableObject(name) {}; + CollisionObject(osg::Node* _node, char* _name = "CollisionObject") : MovableObject::MovableObject(_node, _name) {}; + std::list<CollisionNode*>& getCollisionNodeList(); +}; + +#endif \ No newline at end of file