Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object ShowTopDeck
- case class ShowTopDeckResponse( card : Card )
- case class ExchangeCard( originalCard : Card, replacementCard : Card )
- class Swindler extends Card {
- override def cost = 3
- override def action( player : Player ) {
- val players = List[Player]() // listar os atores jogadores ativos que não o atual
- players.foreach {
- otherPlayer =>
- (otherPlayer ? ShowTopDeck).onComplete {
- case ShowTopDeckResponse( card ) => {
- val replacementCard : Card = null // pick card here
- otherPlayer ! ExchangeCard( card, replacementCard )
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment