Have the first little turn based system going.
This commit is contained in:
parent
f33e14f2cf
commit
ee9f8c7c4b
4 changed files with 10 additions and 2 deletions
|
|
@ -65,6 +65,7 @@ namespace boss {
|
|||
run_systems();
|
||||
break;
|
||||
case ATTACK:
|
||||
$ui.status(L"PLAYER TURN");
|
||||
state(State::PLAYER_TURN);
|
||||
break;
|
||||
default:
|
||||
|
|
@ -81,6 +82,7 @@ namespace boss {
|
|||
state(State::END);
|
||||
break;
|
||||
case ATTACK: {
|
||||
$ui.status(L"PLAYER TURN");
|
||||
int attack_id = std::any_cast<int>(data);
|
||||
boss::System::combat(attack_id);
|
||||
state(State::PLAYER_TURN);
|
||||
|
|
@ -100,6 +102,7 @@ namespace boss {
|
|||
state(State::END);
|
||||
break;
|
||||
case ATTACK: {
|
||||
$ui.status(L"BOSS TURN");
|
||||
int attack_id = std::any_cast<int>(data);
|
||||
boss::System::combat(attack_id);
|
||||
state(State::BOSS_TURN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue