Mercurial > hg > Members > koba > t_dandy
view state_task.cc @ 16:5e10d43156bd
Makefile fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 15 Dec 2010 19:06:42 +0900 |
parents | a1d02b5bcde3 |
children | c330ded6d728 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include <SDL.h> #include "SDL_opengl.h" #include "object.h" #include "Character.h" #include "Character_state.h" #include "tokuten.h" #include "collision.h" #include "bom.h" #include "count2.h" #include "sgoex.h" #include "TaskManager.h" #include "Func.h" #include "property.h" #include "state_task.h" extern TaskManager *tmanager; void SimpleStateTask(CHARACTER *p) { // CHARACTER *one = new CHARACTER; HTaskPtr state_task = tmanager->create_task(SIMPLE_STATE); // one = p; state_task->add_inData(p, sizeof(CHARACTER)); state_task->add_outData(p, sizeof(CHARACTER)); state_task->set_cpu(SPE_ANY); state_task->spawn(); }