Skip to content

File animations.cpp

FileList > COD_ENG_OUT_arduino_code > src > animations.cpp

Go to the source code of this file

This file contains the animations for the game. More...

  • #include <ASL.hpp>
  • #include <Arduino.h>
  • #include <defines.hpp>
  • #include <logic.hpp>

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.

Macros

Type Name
define ANIMATIONS

Detailed Description

In this file, all functions that display animations are defined.

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_number The number of the current player.
  • _u8_remove_position The start position for the token to start walking.
  • _u8_add_position The end position for the token to stop walking.
  • _obj_display Pointer to the display object.
  • _obj_session Pointer to the session object.
  • _u8_player_quantity The number of players.
  • _u8_dice_value The distance the token will walk.

Macro Definition Documentation

define ANIMATIONS

#define ANIMATIONS 

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/animations.cpp