public abstract class Card
extends java.lang.Object
| Constructor and Description |
|---|
Card(Player player,
com.badlogic.gdx.graphics.Texture image,
java.lang.String name)
Initialise's the Card's key parameters.
|
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.graphics.Texture |
getImage() |
java.lang.String |
getName() |
Player |
getOwner() |
void |
implementCard()
A method to be overridden in subclasses.
|
void |
setOwner(Player owner) |
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 Player getOwner()
public void setOwner(Player owner)
public com.badlogic.gdx.graphics.Texture getImage()
public java.lang.String getName()
public void implementCard()