Mercurial > hg > Game > Cerium
diff Renderer/Test/Chain.h @ 540:4c5264373c51 draft
reorganization
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:43:07 +0900 |
parents | Renderer/Application/Chain.h@3bc98f6d31ff |
children | 764772be1e3c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Test/Chain.h Mon Oct 12 09:43:07 2009 +0900 @@ -0,0 +1,25 @@ +#include "Application.h" + +typedef struct { + double x, y, next_x, next_y; + double vx, vy, next_vx, next_vy; + double angle[3]; + int can_move; + SceneGraphPtr parent; + int id; + int parent_id; +} *ChainPropertyPtr, ChainProperty; + + +class Chain : public Application { +public: + Chain(){} + + SceneGraphPtr scenegraph_factory(void *p, int size); + SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list); + void init(TaskManager *manager, int w, int h); + void init_chain_vars(ChainPropertyPtr cv); + void chain_move(TaskManager *manager, SceneGraphPtr sg, int w, int h); + void chain_collision(SceneGraphPtr sg, int w, int h, SceneGraphPtr osg); + +};