import GraphicalViewMouseController from 'roguelike/app/controllers/GraphicalViewMouseController.js'
GraphicalViewMouseController
Controller that listens for mouse actions on dungeon views and converts them to game moves
Constructor Summary
Public Constructor | ||
public |
constructor(sharedData: GraphicalViewSharedData, graphicalDungeonView: graphicalDungeonView) Instantiates a controller and binds event handlers to the document |
Public Constructors
public constructor(sharedData: GraphicalViewSharedData, graphicalDungeonView: graphicalDungeonView) source
Instantiates a controller and binds event handlers to the document
Params:
Name | Type | Attribute | Description |
sharedData | GraphicalViewSharedData | The data object containing the dungeon |
|
graphicalDungeonView | graphicalDungeonView | The view that will receive the clicks |