Home Reference Source Repository
import GraphicalViewKeyboardController from 'roguelike/app/controllers/GraphicalViewKeyboardController.js'
public class | source

GraphicalViewKeyboardController

Controller that listens for keypresses on dungeon views and converts them to game moves

Constructor Summary

Public Constructor
public

Instantiates a controller and binds event handlers to the document

Public Constructors

public constructor(sharedData: GraphicalViewSharedData) source

Instantiates a controller and binds event handlers to the document

Params:

NameTypeAttributeDescription
sharedData GraphicalViewSharedData

The data object containing the dungeon