|
Simone: a game of visual memory and speed
|
Structure that contains the information of the Simone FSM. More...
#include <fsm_simone.h>
Data Fields | |
| fsm_t | f |
| fsm_button_t * | p_fsm_button |
| uint32_t | on_off_press_time_ms |
| uint8_t | level |
| fsm_keyboard_t * | p_fsm_keyboard |
| fsm_rgb_light_t * | p_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 |
Structure that contains the information of the Simone FSM.
| fsm_t fsm_simone_t::f |
Simone FSM
| uint8_t fsm_simone_t::level |
Difficulty level of the game
| uint32_t fsm_simone_t::on_off_press_time_ms |
Time in ms to consider ON/IDLE
| fsm_button_t* fsm_simone_t::p_fsm_button |
Pointer to the button FSM
| fsm_keyboard_t* fsm_simone_t::p_fsm_keyboard |
Pointer to the keyboard FSM
| fsm_rgb_light_t* fsm_simone_t::p_fsm_rgb_light |
Pointer to the RGB light FSM
| uint8_t fsm_simone_t::playback_idx |
Index of the element of the sequence being played back
| bool fsm_simone_t::playback_over |
Indicate if the playback is over
| uint8_t fsm_simone_t::player_idx |
Index of the element of the sequence that the player has to input
| char fsm_simone_t::player_key |
Key pressed by the player
| rgb_color_t fsm_simone_t::seq_colors[SEQUENCE_LENGTH] |
Sequence of colors
| uint8_t fsm_simone_t::seq_idx |
Index of the element of the sequence
| uint8_t fsm_simone_t::seq_intensities[SEQUENCE_LENGTH] |
Sequence of intensities