Create PlayerAction and use hero cards in parallel

This commit is contained in:
henriquenakashima 2020-09-26 18:52:30 -04:00
parent d48780d629
commit a2ced7a003
5 changed files with 61 additions and 25 deletions

View file

@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerAction
{
private bool turnPassed;
private HeroCard cardUsed;
public PlayerAction(HeroCard cardUsed) {
if (cardUsed != null) {
this.cardUsed = cardUsed;
} else {
this.turnPassed = true;
}
}
public bool IsTurnPassed() {
return this.turnPassed;
}
public HeroCard GetCardUsed() {
return this.cardUsed;
}
}