Mercurial > hg > Members > e075743
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:143f7b9f867d | 10:5727d511a13a |
---|---|
1 /* | |
2 * CollisionObject.h | |
3 * Martial | |
4 * | |
5 * Created by ryoma on 10/01/26. | |
6 * Copyright 2010 琉球大学. All rights reserved. | |
7 * | |
8 */ | |
9 | |
10 /*! | |
11 @class CollisionObject | |
12 @abstract 衝突判定が適用されるクラス。 CollisionNodeをリストで保持している。 | |
13 */ | |
14 | |
15 #ifndef _COLLISION_OBJECT_H_ | |
16 #define _COLLISION_OBJECT_H_ | |
17 | |
18 #include <MovableObject.h> | |
19 #include <CollisionNode.h> | |
20 | |
21 class CollisionObject : public MovableObject { | |
22 protected: | |
23 osg::NodePath* nodePath; | |
24 std::list<CollisionNode*> collisionNodeList; | |
25 public: | |
26 CollisionObject(char* name = "CollisionObject") : MovableObject::MovableObject(name) {}; | |
27 CollisionObject(osg::Node* _node, char* _name = "CollisionObject") : MovableObject::MovableObject(_node, _name) {}; | |
28 std::list<CollisionNode*>& getCollisionNodeList(); | |
29 }; | |
30 | |
31 #endif |