Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexdantas/nSnake
/ types & classes
Types & classes
55 in github.com/alexdantas/nSnake
⨍
Functions
308
◇
Types & classes
55
↓ 4 callers
Class
Body
src/Game/Player.hpp:8
↓ 3 callers
Class
ScoreFileException
Custom exception class to specify an error that occurred during a level loading.
src/Game/ScoreFile.hpp:13
↓ 3 callers
Class
stat
src/Misc/Utils.cpp:90
↓ 2 callers
Class
BoardParserException
Custom exception class to specify an error that occurred during a level loading.
src/Game/BoardParser.hpp:12
↓ 1 callers
Class
Fruit
A single fruit.
src/Game/FruitManager.hpp:11
↓ 1 callers
Class
Level
Contains a "scope" of the INI file. Suppose an INI file like this: key=value [group] key=value [[group2]] key=value [[[group3]] key=value We have f
src/Config/INI.hpp:71
↓ 1 callers
Class
LilSnake
src/Interface/Animation/AnimationSnakes.hpp:11
Class
Animation
Abstract interface to any kind of Animation.
src/Interface/Animation/Animation.hpp:7
Class
AnimationSnakes
Rules and behavior of the Fire animation.
src/Interface/Animation/AnimationSnakes.hpp:25
Class
Array2D
src/Misc/Array2D.hpp:22
Class
Board
A level where the snake runs and eats fruits. @note I couldn't name this class "Level" because it could get confusing with the concept of game speed,
src/Game/Board.hpp:32
Class
Board
Avoiding circular #include hell.
src/Game/Player.hpp:20
Class
BoardParser
Opens, loads and parses a level file, returning a well-formed `Board`.
src/Game/BoardParser.hpp:31
Enum
BoardSize
The board size
src/Config/Globals.hpp:93
Enum
BorderType
src/Interface/Window.hpp:19
Enum
Direction
src/Game/Player.hpp:26
Class
FruitManager
Controls how many Fruits are there and how they're spawned.
src/Game/FruitManager.hpp:22
Class
Game
src/Game/Game.hpp:16
Class
GameState
Abstract definition of a game state. ## For dummies A game state is a certain well-defined way the game behaves. Like the main menu (a state), for
src/Flow/GameState.hpp:31
Class
GameStateGame
This represents the actual game taking place. Here is defined all the game logic and rules. ## For developers: Before you continue, take a deep bre
src/Flow/GameStateGame.hpp:29
Class
GameStateMainMenu
The Main Menu.
src/Flow/GameStateMainMenu.hpp:12
Class
GameStateMainMenu
circular dependence on GameStateMainMenu
src/Interface/LayoutMainMenu.hpp:10
Class
Layout
Interface for how the things are shown on the screen. Any Layout will have lots if Windows, each with a specific function: to show the game board, di
src/Interface/Layout.hpp:15
Class
LayoutFirstTime
How we show the screen at GameStateFirstTime. See it's documentation there.
src/Interface/LayoutFirstTime.hpp:10
Class
LayoutGame
Pre-defining it's layout to avoid circular dependency.
src/Game/Game.hpp:14
Class
LayoutGame
src/Interface/LayoutGame.hpp:11
Class
LayoutMainMenu
How we show the screen at GameStateMainMenu. This class is merely a wrapper over functions that print GameStateMainMenu on the screen. Thus, it need
src/Interface/LayoutMainMenu.hpp:20
Class
Menu
List of selectable items. @warning When adding items, make sure they're allocated dynamically! I mean POINTERS, damn it. Otherwise SEGFAULTS when try
src/Interface/Menu/Menu.hpp:28
Class
MenuAlphabetic
Menu on which its items are always sorted alphabetically. It has special navigation keys: by pressing a letter it will jump straight to the first occ
src/Interface/Menu/MenuAlphabetic.hpp:11
Class
MenuItem
Simplest type of item possible, with a label and user-defined id.
src/Interface/Menu/MenuItem.hpp:11
Class
MenuItemCheckbox
A little box that can be checked or not. Used to get a boolean from the user.
src/Interface/Menu/MenuItemCheckbox.hpp:9
Class
MenuItemLabel
Shows a Menu Item with left and right labels.
src/Interface/Menu/MenuItemLabel.hpp:7
Class
MenuItemNumberbox
Allows to select a number, kinda like a slider. There's a number and by pressing left and right you add or remove units of it. @note When you press
src/Interface/Menu/MenuItemNumberbox.hpp:17
Class
MenuItemTextbox
Place where you can input characters. For more info, check out MenuItem.
src/Interface/Menu/MenuItemTextbox.hpp:9
Class
MenuItemTextlist
A list of selectable text
src/Interface/Menu/MenuItemTextlist.hpp:10
Enum
MenuItemType
src/Interface/Menu/MenuItem.hpp:17
Enum
NamesToEasilyIdentifyTheMenuItemsInsteadOfRawNumbers
src/Flow/GameStateMainMenu.cpp:10
Enum
NamesToEasilyIdentifyTheMenuItemsInsteadOfRawNumbers
Options of the Pause Menu
src/Game/Game.cpp:11
Class
Parser
Loads, reads and parses the contents of an INI file (or string).
src/Config/INI.hpp:156
Class
Player
Avoiding circular #include hell.
src/Game/Board.hpp:10
Class
Player
src/Game/Player.hpp:23
Class
ScoreEntry
Avoiding cyclic #includes
src/Config/Globals.hpp:9
Class
ScoreEntry
A single entry on the high-score file.
src/Game/ScoreFile.hpp:27
Class
ScoreFile
Stores points the player made on the game. There's different high scores for different game settings. Each time the user runs the game with a differ
src/Game/ScoreFile.hpp:87
Enum
StateCode
src/Flow/GameState.hpp:39
Class
StateManager
Giga-class that switches from game states. It makes the transitions between them, assuring each one is properly initialized. ## For developers: Sho
src/Flow/StateManager.hpp:22
Enum
Style
src/Game/Board.hpp:46
Class
Timer
src/Misc/Timer.hpp:7
Class
Window
A segment of the terminal screen (2D char matrix).
src/Interface/Window.hpp:16
Class
WindowGameHelp
Specific Window that shows Help and other info during Game.
src/Interface/WindowGameHelp.hpp:11
Enum
WindowTitlePosition
src/Interface/Window.hpp:70
Class
command
deps/commander/commander.h:37
Class
dirent
src/Misc/Utils.cpp:219
Class
timeval
src/Misc/Timer.cpp:13
Class
timeval
src/Interface/Ncurses.cpp:44