Mercurial > hg > Game > Cerium
changeset 446:aa1d0b655aa3 draft
Chain.h add
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 25 Sep 2009 07:29:15 +0900 |
parents | efe8584a7b5a |
children | 9b06420a940c |
files | TaskManager/Test/test_render/Application/Chain.h |
diffstat | 1 files changed, 29 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/Test/test_render/Application/Chain.h Fri Sep 25 07:29:15 2009 +0900 @@ -0,0 +1,29 @@ +#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); + + int move_task_id(); + int move_task_id_; + + 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); + +};