public abstract class Card
extends java.lang.Object
Constructor and Description |
---|
Card(Player player,
org.json.simple.JSONObject cardJSON) |
Card(Player player,
com.badlogic.gdx.graphics.Texture image,
java.lang.String name)
Initialise's the Card's key parameters.
|
public Card(Player player, com.badlogic.gdx.graphics.Texture image, java.lang.String name)
player
- The owner of the card.image
- The texture used in displaying the card in the dockname
- The name of the card. Eg. \"Coal\" or \"Teleport\"public Card(Player player, org.json.simple.JSONObject cardJSON)
public java.lang.String toJSON()
public Player getOwner()
public void setOwner(Player owner)
public com.badlogic.gdx.graphics.Texture getImage()
public java.lang.String getName()
public void implementCard()