Now have the basics of the turn based battle engine with AI rebellion working.
This commit is contained in:
parent
f3b20f30c5
commit
c78b2ae75e
8 changed files with 114 additions and 73 deletions
|
|
@ -70,6 +70,8 @@ namespace boss {
|
|||
$ui.status(L"PLAYER TURN");
|
||||
state(State::PLAYER_TURN);
|
||||
break;
|
||||
case TICK:
|
||||
break; // ignore tick
|
||||
default:
|
||||
fmt::println("BOSS_FIGHT:START unknown event {}", (int)ev);
|
||||
break;
|
||||
|
|
@ -98,9 +100,11 @@ namespace boss {
|
|||
$ui.update_stats();
|
||||
state(State::PLAYER_TURN);
|
||||
} break;
|
||||
case TICK:
|
||||
break; // ignore tick
|
||||
default:
|
||||
fmt::println("BOSS_FIGHT:BOSS_TURN unknown event {}", (int)ev);
|
||||
break;
|
||||
// skip it
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -124,8 +128,10 @@ namespace boss {
|
|||
boss::System::combat($world, $boss_id, attack_id);
|
||||
state(State::BOSS_TURN);
|
||||
} break;
|
||||
case TICK:
|
||||
break; // ignore tick
|
||||
default:
|
||||
// skip it
|
||||
fmt::println("BOSS_FIGHT:PLAYER_TURN unknown event {}", (int)ev);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue