File main.cpp
FileList > COD_ENG_OUT_arduino_code > src > main.cpp
Go to the source code of this file
This file contains the main loop and setup of the game. More...
#include <ASL.hpp>#include <Arduino.h>#include <defines.hpp>#include <logic.hpp>
Public Attributes
| Type | Name |
|---|---|
| bool | bool_blink_flag = = false |
| ASL::en_state | en_current_state = = ASL::display_setup_real_players |
| int8_t | i8_current_player_number |
| int8_t | i8_current_token_number |
| ASL::cla_display | obj_display |
| LOGIC::cla_session * | obj_session |
| uint8_t | u8_computer_quantity |
| uint8_t | u8_player_quantity |
Public Functions
| Type | Name |
|---|---|
| void | Move_Token (int8_t _i8_current_player_number, uint8_t _u8_remove_position, uint8_t _u8_add_position, ASL::cla_display * _obj_display, LOGIC::cla_session * _obj_session, uint8_t _u8_player_quantity, uint8_t _u8_dice_value) This function animates the token movement. |
| void | loop () |
| void | setup () |
Detailed Description
In this file, the setup and loop functions are implemented.
Public Attributes Documentation
variable bool_blink_flag
volatile bool bool_blink_flag;
variable en_current_state
volatile ASL::en_state en_current_state;
variable i8_current_player_number
volatile int8_t i8_current_player_number;
variable i8_current_token_number
volatile int8_t i8_current_token_number;
variable obj_display
ASL::cla_display obj_display(A, B, C, CLK, LAT, OE);
variable obj_session
LOGIC::cla_session* obj_session;
variable u8_computer_quantity
uint8_t u8_computer_quantity;
variable u8_player_quantity
uint8_t u8_player_quantity;
Public Functions Documentation
function Move_Token
This function animates the token movement.
void Move_Token (
int8_t _i8_current_player_number,
uint8_t _u8_remove_position,
uint8_t _u8_add_position,
ASL::cla_display * _obj_display,
LOGIC::cla_session * _obj_session,
uint8_t _u8_player_quantity,
uint8_t _u8_dice_value
)
This function animates the movement of a token from one position to another.
Parameters:
_i8_current_player_numberThe number of the current player._u8_remove_positionThe start position for the token to start walking._u8_add_positionThe end position for the token to stop walking._obj_displayPointer to the display object._obj_sessionPointer to the session object._u8_player_quantityThe number of players._u8_dice_valueThe distance the token will walk.
function loop
void loop ()
function setup
void setup ()
The documentation for this class was generated from the following file /home/runner/work/Arduino_DHBW_Spiel/Arduino_DHBW_Spiel/Engineering/COD_ENG_OUT_arduino_code/src/main.cpp