Mercurial > hg > Members > koba > t_dandy
changeset 10:a1d02b5bcde3
fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Dec 2010 15:18:09 +0900 |
parents | e90c4a8f9dc8 |
children | 844006c7ce84 |
files | state_task.cc |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/state_task.cc Thu Dec 16 15:18:09 2010 +0900 @@ -0,0 +1,32 @@ +#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(); +}