Public Member Functions | Public Attributes

unlock.state.grid_state.HierarchyGridState Class Reference

Inheritance diagram for unlock.state.grid_state.HierarchyGridState:
unlock.state.grid_state.GridState unlock.state.state.UnlockState

List of all members.

Public Member Functions

def __init__
def handle_state_change
def process_selection

Public Attributes

 radius
 state
 state_change
 cue

Detailed Description

The Hierarchy Grid is a 2D grid interface for selecting targets arranged
 in a hierarchical fashion. The grid contains 2 or more layers, where
 certain tiles in the grid correspond to descend/ascend actions and the
 rest are target actions. The grid is laid our radially, with (0, 0)
 corresponding to the center.

1) Create a square grid of tiles
2) Each tile's state is its label and action
3) On layer change, set tile states accordingly

Member Function Documentation

def unlock.state.grid_state.HierarchyGridState.__init__ (   self,
  grid_radius 
)

Reimplemented from unlock.state.grid_state.GridState.

def unlock.state.grid_state.HierarchyGridState.handle_state_change (   self,
  new_state,
  change 
)
def unlock.state.grid_state.HierarchyGridState.process_selection (   self  ) 
Determine and execute current tile's associated action

Member Data Documentation


The documentation for this class was generated from the following file: