|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.TeamHEC.LocomotionCommotion.Card.Card
public abstract class Card
Constructor Summary | |
---|---|
Card(Player player,
com.badlogic.gdx.graphics.Texture image,
java.lang.String name)
Initialise's the Card's key parameters. |
Method Summary | |
---|---|
com.badlogic.gdx.graphics.Texture |
getImage()
Gets the texture of the card |
java.lang.String |
getName()
Gets the name of the card |
Player |
getOwner()
Returns the player that owns that card |
void |
implementCard()
A method to be overridden in subclasses. |
void |
setOwner(Player owner)
Sets the owner of the card |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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\"Method Detail |
---|
public Player getOwner()
public void setOwner(Player owner)
owner
- this is the owner of the cardpublic com.badlogic.gdx.graphics.Texture getImage()
public java.lang.String getName()
public void implementCard()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |