look here,my god!

racewind 2006-02-11 04:46:05
boolean update_biathlon_run(int param_action)
{
action = param_action;

aa = - 4;
dx = delay_index;

delay_index = 0;
taskInterval = 120;
if (Main.track_y[p] > 0)
{
aa = - 5;
taskInterval = 110;
delay_index = 1;
}
if (Main.track_y[p] < 0)
{
aa = - 2;
taskInterval = 140;
delay_index = 2;
}
taskInterval += v >> 2;

max_period = 4;

processed = false;
if (action == prev_action)
{
action = 0;
}
else
{
pressed = false;
prev_action = action;
}

if (w_action != 0 && (mistake_cnt == 0))
{
if (period != 0) action = 0;
else
{
action = w_action;
pressed = false;
w_action = 0;
}
}

switch (action)
{
/*
case Canvas.KEY_NUM1:
finished = true;
state = Main.STATE_BIATHLON_RUN_FINISH;
state_delay = 40;
Main.finish_biathlon_run();
break;
*/
case -3:
case Canvas.KEY_NUM4:
if (!pressed && (delay_index != 2) && !finished)
{
if (period == 0)
{
if (man_index != 0 || begin)
{
man_index = 0;
pressed = processed = true;
}
}
else
{
mistake_cnt = 2;
if (period == 1) mistake_cnt = 1;
processed = pressed = true;
w_action = action;
}
}
break;
case -4:
case Canvas.KEY_NUM6:
if (!pressed && (delay_index != 2) && !finished)
{
if (period == 0)
{
if (man_index != 1 || begin)
{
man_index = 1;
pressed = processed = true;
}
}
else
{
mistake_cnt = 2;
if (period == 1) mistake_cnt = 1;
processed = pressed = true;
w_action = action;
}
}
break;
case -2:
case Canvas.KEY_NUM8:
if (!pressed && (delay_index == 2) && !finished)
{
if (period == 0)
{
man_index = 1;
pressed = processed = true;
}
else
{
mistake_cnt = 2;
processed = pressed = true;
w_action = action;
}
}
break;
case -7:
case Canvas.KEY_STAR:
processed = true;
Main.pause();
break;
case Main.NO_ACTION:
pressed = false;
prev_action = 0;
}

if (dx != delay_index || begin || processed)
{
if (dx == 2 && !processed) // from landing to horiz
{
man_index = 0;
}
a1 = man_index + 1 + (delay_index << 1);
}

...全文
169 点赞 收藏 3
写回复
3 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
racewind 2006-02-27
erverthing look's is only little,all have 300000!
回复
racewind 2006-02-27
no question! 3x,i think i afraid code ,hate long code and read it
回复
贝壳鱼 2006-02-13
what's your question?
回复
相关推荐
发帖
J2ME
创建于2007-09-28

1.3w+

社区成员

Java J2ME
申请成为版主
帖子事件
创建了帖子
2006-02-11 04:46
社区公告
暂无公告