10
|
1 #include <stdio.h>
|
|
2 #include <stdlib.h>
|
|
3 #include <SDL.h>
|
|
4 #include "SDL_opengl.h"
|
|
5 #include "object.h"
|
|
6 #include "Character.h"
|
|
7 #include "Character_state.h"
|
|
8 #include "tokuten.h"
|
|
9 #include "collision.h"
|
|
10 #include "bom.h"
|
|
11 #include "count2.h"
|
|
12 #include "sgoex.h"
|
|
13 #include "TaskManager.h"
|
|
14 #include "Func.h"
|
|
15 #include "property.h"
|
|
16 #include "state_task.h"
|
|
17
|
|
18 extern TaskManager *tmanager;
|
|
19
|
|
20 void
|
|
21 SimpleStateTask(CHARACTER *p)
|
|
22 {
|
|
23 // CHARACTER *one = new CHARACTER;
|
|
24 HTaskPtr state_task = tmanager->create_task(SIMPLE_STATE);
|
|
25
|
|
26 // one = p;
|
|
27 state_task->add_inData(p, sizeof(CHARACTER));
|
|
28 state_task->add_outData(p, sizeof(CHARACTER));
|
|
29
|
|
30 state_task->set_cpu(SPE_ANY);
|
|
31 state_task->spawn();
|
|
32 }
|