Mercurial > hg > Members > koba > t_dandy
changeset 11:844006c7ce84
add new file.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 16 Dec 2010 15:23:29 +0900 |
parents | a1d02b5bcde3 |
children | 56d9dabb6630 |
files | Dandy.o GPATH GRTAGS GTAGS bf ppe/SimpleState.cc ppe/SimpleState.h state_task.h |
diffstat | 8 files changed, 35 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bf Thu Dec 16 15:23:29 2010 +0900 @@ -0,0 +1,11 @@ +ppe/Atari.cc: if ((ex < jiki->x + 128 / 2) && (ex + w > jiki->x + 128 / 2) +ppe/Atari.cc: && (ey < jiki->y + 128 / 2) && (ey + h > jiki->y + 128 / 2) +ppe/Atari.cc: && jiki->muteki == 0) { +ppe/Atari.cc: Bom(jiki->x + 16, jiki->y + 16, bomend, bchar); +ppe/Atari.cc: jiki->bf = FALSE; +ppe/Atari.cc: jiki->zanki--; +ppe/Atari.cc: jiki->muteki = 120; +ppe/Atari.cc: if ((tlv3[0].r > 0) && (jiki->x < ex + w) && (jiki->x + 128 > ex) +ppe/Atari.cc: && (jiki->y > ey + h)) { +ppe/Atari.cc: if ((tlv3[0].r > 0) && (jiki->x < ex + w) && (jiki->x + 128 > ex) +ppe/Atari.cc: && (jiki->y + 128 > ey) && (jiki->y < ey + h)) {
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ppe/SimpleState.cc Thu Dec 16 15:23:29 2010 +0900 @@ -0,0 +1,15 @@ +#include "SimpleState.h" +#include "Character_state.h" +#include "tobject.h" + +SchedDefineTask(SimpleState); + +static int +run(SchedTask *smanager, void *rbuf, void *wbuf) +{ + CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0); + p = (*p->state)(p); + + smanager->swap(); + return 0; +}