SNAKE_STM32F3
Loading...
Searching...
No Matches
snake_state Struct Reference

Structure holding all snake info. More...

#include <snake.h>

Collaboration diagram for snake_state:

Data Fields

uint8_t length
vec2_t head
vec2_t tail [MAX_SNAKE_SIZE]
vec2_t fruit
direction_t move_dir
direction_t prev_move_dir
bool collision_map [GAME_DIM][GAME_DIM]
bool GROWTH
state_t state

Detailed Description

Structure holding all snake info.

Field Documentation

◆ collision_map

bool snake_state::collision_map[GAME_DIM][GAME_DIM]

◆ fruit

vec2_t snake_state::fruit

◆ GROWTH

bool snake_state::GROWTH

◆ head

vec2_t snake_state::head

◆ length

uint8_t snake_state::length

◆ move_dir

direction_t snake_state::move_dir

◆ prev_move_dir

direction_t snake_state::prev_move_dir

◆ state

state_t snake_state::state

◆ tail

vec2_t snake_state::tail[MAX_SNAKE_SIZE]

The documentation for this struct was generated from the following file:
  • firmware/SNAKE_STM32F3/libs/snake/snake.h