Many new settings to support the new state machine functionality.
This commit is contained in:
parent
908bdbba35
commit
47822bbdec
11 changed files with 84 additions and 21 deletions
|
@ -22,6 +22,8 @@
|
|||
/* Include Files */
|
||||
#include "SystemK.h"
|
||||
|
||||
static const char *KLOG_TAG = "STARTING_GAME__COUNTING_DOWN";
|
||||
|
||||
static void Starting_Game__Counting_Down_Entry(StateMachineContext_T * context);
|
||||
static void Starting_Game__Counting_Down_Do(StateMachineContext_T * context);
|
||||
static void Starting_Game__Counting_Down_Exit(StateMachineContext_T * context);
|
||||
|
@ -48,8 +50,17 @@ static void Starting_Game__Counting_Down_Entry(StateMachineContext_T * context)
|
|||
Reset_Shots_Fired();
|
||||
Reset_Tags_Received();
|
||||
Reset_Times_Tagged_Out();
|
||||
// TODO: Get this from settings.
|
||||
Set_Available_Bombs(1);
|
||||
|
||||
uint8_t n_bombs;
|
||||
if (SETTINGS_get_uint8_t(SYSTEMK_SETTING_N_SPECIAL_WEAPONS_ON_REENTRY, &n_bombs) == SYSTEMK_RESULT_SUCCESS)
|
||||
{
|
||||
Set_Available_Bombs(n_bombs);
|
||||
}
|
||||
else
|
||||
{
|
||||
Set_Available_Bombs(0);
|
||||
KLOG_ERROR(KLOG_TAG, "Error getting available bombs!");
|
||||
}
|
||||
|
||||
N_Lights_Lit = 0;
|
||||
AudioAction_T audio_action = {.ID = AUDIO_SILENCE, .Data = (void *)0x00};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue