MCPcopy Index your code

hub / github.com/Broderick-Westrope/tetrigo / types & classes

Types & classes56 in github.com/Broderick-Westrope/tetrigo

↓ 5 callersTypeAliasaction
pkg/tetris/action.go:10
↓ 1 callersTypeAliasFatalErrorMsg
FatalErrorMsg encloses an error which should be set on the starter model before exiting the program.
internal/tui/messages.go:6
↓ 1 callersTypeAliasMode
internal/tui/mode.go:27
StructAction
An Action performed by the user that corresponds to points.
pkg/tetris/action.go:6
StructActionContainer
pkg/tetris/action.go:139
StructCLI
cmd/tetrigo/main.go:8
StructConfig
internal/config/config.go:11
StructCoordinate
Coordinate represents a position in the game matrix using X (horizontal) and Y (vertical) coordinates. The origin (0,0) is the top-left of a matrix (w
pkg/tetris/tetrimino.go:39
StructFall
pkg/tetris/fall.go:8
StructGame
Game represents a single player game of Tetris. This can be used for Marathon, Sprint, Ultra and other single player modes.
pkg/tetris/modes/single/single.go:14
StructGameKeyMap
internal/tui/components/game_keys.go:10
StructGameStyles
internal/tui/components/game_styles.go:8
StructGlobalVars
cmd/tetrigo/main.go:16
StructInput
pkg/tetris/modes/single/single.go:27
StructInput
internal/tui/starter/model.go:18
StructKeys
internal/config/keys.go:3
StructLeaderboardCmd
cmd/tetrigo/subcommands.go:41
StructLeaderboardInput
internal/tui/mode.go:75
StructLeaderboardModel
internal/tui/views/leaderboard.go:20
StructLeaderboardRepository
internal/data/leaderboard.go:19
TypeAliasMatrix
Matrix represents the board of cells on which the game is played.
pkg/tetris/matrix.go:9
StructMenuCmd
cmd/tetrigo/subcommands.go:14
StructMenuInput
internal/tui/mode.go:67
StructMenuModel
internal/tui/views/menu.go:31
StructMockStopwatch
MockStopwatch is an autogenerated mock type for the Stopwatch type
internal/tui/components/mock_Stopwatch.go:13
StructMockStopwatch_Elapsed_Call
MockStopwatch_Elapsed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Elapsed'
internal/tui/components/mock_Stopwatch.go:44
StructMockStopwatch_Expecter
internal/tui/components/mock_Stopwatch.go:17
StructMockStopwatch_ID_Call
MockStopwatch_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
internal/tui/components/mock_Stopwatch.go:89
StructMockStopwatch_Init_Call
MockStopwatch_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
internal/tui/components/mock_Stopwatch.go:136
StructMockStopwatch_Reset_Call
MockStopwatch_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
internal/tui/components/mock_Stopwatch.go:183
StructMockStopwatch_SetInterval_Call
MockStopwatch_SetInterval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetInterval'
internal/tui/components/mock_Stopwatch.go:215
StructMockStopwatch_Stop_Call
MockStopwatch_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
internal/tui/components/mock_Stopwatch.go:263
StructMockStopwatch_Toggle_Call
MockStopwatch_Toggle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Toggle'
internal/tui/components/mock_Stopwatch.go:310
StructMockStopwatch_Update_Call
MockStopwatch_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
internal/tui/components/mock_Stopwatch.go:369
StructMockStopwatch_View_Call
MockStopwatch_View_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'View'
internal/tui/components/mock_Stopwatch.go:415
StructModel
internal/tui/starter/model.go:36
StructNextQueue
NextQueue is a collection of up to 14 Tetriminos that are drawn from randomly. The queue is refilled when it has less than 7 Tetriminos.
pkg/tetris/next_queue.go:9
StructPlayCmd
cmd/tetrigo/subcommands.go:20
TypeAliasRotationCompass
RotationCompass defines rotation offset data for all four possible orientations of a Tetrimino (North, East, South, West). This implements the Super R
pkg/tetris/tetrimino.go:46
TypeAliasRotationOffsets
RotationOffsets contains a sequence of offset coordinates to try when rotating a Tetrimino. When rotating, these offsets are tried in order until a va
pkg/tetris/tetrimino.go:52
StructScore
internal/data/leaderboard.go:8
StructScoring
Scoring is a scoring system for Tetris. It keeps track of the current level, total score, and lines cleared. It also has options to increase the level
pkg/tetris/scoring.go:10
StructSingleInput
SwitchModeInput values --------------------------------------------------
internal/tui/mode.go:51
StructSingleModel
internal/tui/views/single.go:50
InterfaceStopwatch
internal/tui/components/stopwatch.go:10
InterfaceSwitchModeInput
internal/tui/mode.go:14
StructSwitchModeMsg
internal/tui/mode.go:9
StructTetrimino
A Tetrimino is a geometric Tetris piece formed by connecting four square blocks (Minos) along their edges. Each Tetrimino has a unique shape, position
pkg/tetris/tetrimino.go:15
StructTheme
internal/config/theme.go:3
InterfaceTimer
internal/tui/components/timer.go:10
StructcellCharacters
internal/tui/components/game_styles.go:26
StructholdStyles
internal/tui/components/game_styles.go:20
StructleaderboardKeyMap
internal/tui/views/leaderboard_keys.go:7
StructmenuKeyMap
internal/tui/views/menu_keys.go:8
StructstopwatchImpl
internal/tui/components/stopwatch.go:22
StructtimerImpl
internal/tui/components/timer.go:21