|
Snapple
|
#include "../prelude.hpp"#include "../backend/components.hpp"#include "../cfg.hpp"#include <cstdint>#include <optional>Kelas | |
| struct | TileCoord |
| class | AppleExplosion |
| class | PlayerStats |
| struct | MathQuestion |
| class | MathQuestionDisplay |
| class | StatusBar |
| class | Player |
| class | GameScene |
Makro Definisi | |
| #define | LIVES 3 |
| #define | SNAKE_INITIAL_LENGTH 50 - 1 |
| #define | SNAKE_UNIT_LENGTH 5 |
| #define | TILE_ROWS 17 |
| #define | TILE_COLUMNS 32 |
| #define | TILE_DIMENSION 60 |
Enumerasi | |
| enum | Direction { UP , DOWN , LEFT , RIGHT } |
| enum | Difficulty { ADD_SUB_EASY , ADD_SUB_HARD , MULT_DIV_EASY , MULT_DIV_HARD , POW_SQRT_EASY , POW_SQRT_HARD } |
| enum | Food { BAD_APPLE , APPLE , APPLE_PIE , GOLDEN_APPLE_PIE } |
| enum | GameOver { FALSE , CRASH_WALL , CRASH_SELF , BAD_FOOD } |
| enum | MathDisplayStatus { QUESTION , FEEDBACK } |
Fungsi | |
| Food | get_food (Difficulty difficulty) |
| long long | get_pts (Food food) |
| #define LIVES 3 |
| #define SNAKE_INITIAL_LENGTH 50 - 1 |
| #define SNAKE_UNIT_LENGTH 5 |
| #define TILE_COLUMNS 32 |
| #define TILE_DIMENSION 60 |
| #define TILE_ROWS 17 |
| enum Difficulty |
| enum Direction |
| enum Food |
| enum GameOver |
| enum MathDisplayStatus |
| Food get_food | ( | Difficulty | difficulty | ) |
| long long get_pts | ( | Food | food | ) |