view spe/chara_state11.cc @ 18:c330ded6d728

add task file.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Dec 2010 22:18:11 +0900
parents
children f4140672ef9f
line wrap: on
line source

#include "chara_state11.h"
#include "tobject.h"

SchedDefineTask(STATE11);

static int
run(SchedTask *smanager, void *rbuf, void *wbuf)
{
    CHARACTER *p = (CHARACTER*)smanager->get_input(rbuf, 0);

    if(rinkf1 == 0)
    {
	count++;
	DefSpriteEx(54, 16, 32);
	PutSpriteEx(54, p->x, p->y, p->s, p->s, 1);
	p->task = STATE11;
	return 0;
    }
    p->dt1 = 0;
    p->dt2 = 0;
    p->task = STATE12;
    return 0;
}