view TaskManager/Test/test_render/Application/Chain.h @ 447:6dd11969f8b2

fix...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 25 Sep 2009 07:40:09 +0900
parents e1d1be9c1d75
children dc50a62ffd96
line wrap: on
line source

#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);
    
    virtual 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);

};