map.RobberOverlay Class
This class implements the overlay view that lets the user select a player to rob.
It displays a list of other users who can be robbed, and lets the user select which one they want to rob.
It inherits from misc.BaseOverlay.
Its controller should be set to a MapController, on which it calls the "robPlayer" method.
Constructor
map.RobberOverlay
()
Item Index
Methods
closeModal
()
makes the overlay invisible
Returns:
void
setController
(
-
controller
sets the Controller for the view
Parameters:
-
controller
misc.BaseController
Returns:
void
setPlayerInfo
(
-
info
This sets the available players to rob: an array of objects of the form
- { color:String,
- name:String,
- playerNum:int,
- cards:int}
Parameters:
-
info
Object
showModal
()
makes the overlay visible
Returns:
void