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

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:

NameTypeAttributeDescription
sharedData GraphicalViewSharedData

The data object containing the dungeon

graphicalDungeonView graphicalDungeonView

The view that will receive the clicks