Simone: a game of visual memory and speed
fsm_simone_t Struct Reference

Structure that contains the information of the Simone FSM. More...

#include <fsm_simone.h>

Data Fields

fsm_t f
 
fsm_button_tp_fsm_button
 
uint32_t on_off_press_time_ms
 
uint8_t level
 
fsm_keyboard_tp_fsm_keyboard
 
fsm_rgb_light_tp_fsm_rgb_light
 
rgb_color_t seq_colors [SEQUENCE_LENGTH]
 
uint8_t seq_intensities [SEQUENCE_LENGTH]
 
uint8_t seq_idx
 
uint8_t playback_idx
 
bool playback_over
 
uint8_t player_idx
 
char player_key
 

Detailed Description

Structure that contains the information of the Simone FSM.

Field Documentation

◆ f

fsm_t fsm_simone_t::f

Simone FSM

◆ level

uint8_t fsm_simone_t::level

Difficulty level of the game

◆ on_off_press_time_ms

uint32_t fsm_simone_t::on_off_press_time_ms

Time in ms to consider ON/IDLE

◆ p_fsm_button

fsm_button_t* fsm_simone_t::p_fsm_button

Pointer to the button FSM

◆ p_fsm_keyboard

fsm_keyboard_t* fsm_simone_t::p_fsm_keyboard

Pointer to the keyboard FSM

◆ p_fsm_rgb_light

fsm_rgb_light_t* fsm_simone_t::p_fsm_rgb_light

Pointer to the RGB light FSM

◆ playback_idx

uint8_t fsm_simone_t::playback_idx

Index of the element of the sequence being played back

◆ playback_over

bool fsm_simone_t::playback_over

Indicate if the playback is over

◆ player_idx

uint8_t fsm_simone_t::player_idx

Index of the element of the sequence that the player has to input

◆ player_key

char fsm_simone_t::player_key

Key pressed by the player

◆ seq_colors

rgb_color_t fsm_simone_t::seq_colors[SEQUENCE_LENGTH]

Sequence of colors

◆ seq_idx

uint8_t fsm_simone_t::seq_idx

Index of the element of the sequence

◆ seq_intensities

uint8_t fsm_simone_t::seq_intensities[SEQUENCE_LENGTH]

Sequence of intensities


The documentation for this struct was generated from the following file: