map.MapOverlay Class
This class implements the map pop-out overlay view that lets the user place a piece on the map.
It inherits from misc.BaseOverlay.
It calls the "cancelMove" function on the controller it belongs to.
Constructor
map.MapOverlay
()
Item Index
Methods
Methods
closeModal
()
Closes the overlay.
showModal
(
-
type
Shows a modal overlay of the map.
Parameters:
-
type
Stringthe type of the item to place: "Robber", "Soldier", "City", "Settlement", "Road".