# HG changeset patch # User koba # Date 1292480289 -32400 # Node ID a1d02b5bcde32edd48e21154c985d618d2ca1e91 # Parent e90c4a8f9dc8aaf15e3b62eb51f5c6d06391d4af fix. diff -r e90c4a8f9dc8 -r a1d02b5bcde3 state_task.cc --- /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 +#include +#include +#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(); +}