aboutsummaryrefslogtreecommitdiff
path: root/src/actions.zig
blob: ac46574624530f086ce461aef00cc1514c98c311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//! This module provides an enum of available actions in game including internal signals.
const std = @import("std");

/// An enum of available actions in the game
pub const Action = enum {
    /// Illegal action. Treated as a noop.
    illegal,

    /// One game tick has finished.
    tick,

    /// Exit the game.
    exit,

    /// Move the player character up one tile.
    move_up,

    /// Move the player character down one tile.
    move_down,

    /// Move the player character left one tile.
    move_left,

    /// Move the player character right one tile.
    move_right,

    /// The player character goes down a flight of stairs.
    down_stair,

    /// The player character goes up a flight of stairs.
    /// (TODO: possibly merge with down_stair)
    up_stair,
};