Expand description
The graphing submodule that handles the creation of graphs from the game state.
Structsยง
- Grapher
- An object that can create graphs from the game state
Constantsยง
- GRAPH_
LABEL_ ๐SPACE - GRAPH_
MARGIN ๐ - GRAPH_
SIZE ๐ - Common graph size in pixels
- MAX_Y ๐
- The maximum y value for the death graphs
- MIN_Y ๐
- NO_
PARENT ๐ - A value indicating that the node has no parent
- PARENT_
CHILD_ ๐MARGIN - PEER_
MARGIN ๐ - TIMELINE_
MARGIN ๐ - TREE_
MARGIN ๐ - TREE_
NODE_ ๐SIZE_ MULTIPLIER - Y_LABEL ๐
- The y label for the death graphs
Traitsยง
- Tree
Node - A trait for objects that can be used in a tree structure
Functionsยง
- create_
graph ๐ - Creates a graph from a given data set Assumes that the data is sorted by the x value, and that the y value is a percentage
- create_
timeline_ graph - handle_
node ๐ - Handles node initialization within the graph. Tree is the tree object we are adding the node to, stack is the stack we are using to traverse the tree, storage is the hashmap we are using to store the node data, fnt is the font we are using to calculate the size of the node, and parent is the parent node id.