Mercurial > hg > Members > koba > t_dandy
view ppe/chara_state33.cc @ 64:07bc996c8e49
fix t_dandy on ps3.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 11 Feb 2011 18:20:30 +0900 |
parents | 978097c6427a |
children | b97628fca317 |
line wrap: on
line source
#include "task_base.h" #include "task_object.h" SchedDefineTask1(State33, state33); static int state33(SchedTask *smanager, void *rbuf, void *wbuf) { int enemystate_11 = (int)smanager->get_param(4); int enemystate_19 = (int)smanager->get_param(5); int length; CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); CHARACTER *kyeenemyno = (CHARACTER*)smanager->get_input(rbuf, 1); int rinkf1 = *(int*)smanager->get_input(rbuf, 3); CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); if (kyeenemyno->f == FALSE) { length = 1; smanager->set_outputSize(2, sizeof(ObjContainer)+sizeof(ObjData)*(length-1)); smanager->setup_outputData(); CHARACTER *q = (CHARACTER*)smanager->get_output(wbuf, 0); ObjContainerPtr sprite = (ObjContainerPtr)smanager->get_output(wbuf, 2); sprite->flag = true; sprite->length = length; Bom(p->x, p->y, &sprite->data[0]); p->f = FALSE; p->collision_task = true; *q = *p; return 0; } p->x = kyeenemyno->x + 32; p->y = kyeenemyno->y; if (rinkf1 == 5) { p->x = kyeenemyno->x + 32 - 4; p->y = kyeenemyno->y; p->charano = enemystate_19; } if (rinkf1 == 6) { p->charano = enemystate_11; } *q = *p; return 0; }