com.TeamHEC.LocomotionCommotion.Card
Class ResourceCard

java.lang.Object
  extended by com.TeamHEC.LocomotionCommotion.Card.Card
      extended by com.TeamHEC.LocomotionCommotion.Card.ResourceCard
Direct Known Subclasses:
CoalCard, ElectricCard, NuclearCard, OilCard

public abstract class ResourceCard
extends Card

Author:
Callum Hewitt An abstract class used by all resource cards.

Constructor Summary
ResourceCard(Player owner, com.badlogic.gdx.graphics.Texture cardTexture, java.lang.String fuelType)
          Initialises the card.
 
Method Summary
 void implementCard()
          A method to be overridden in subclasses.
 
Methods inherited from class com.TeamHEC.LocomotionCommotion.Card.Card
getImage, getName, getOwner, setOwner
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceCard

public ResourceCard(Player owner,
                    com.badlogic.gdx.graphics.Texture cardTexture,
                    java.lang.String fuelType)
Initialises the card.

Parameters:
owner - The player who owns the card.
cardTexture - The image the card will have on the UI.
fuelType - The type of fuel the card will generate.
Method Detail

implementCard

public void implementCard()
Description copied from class: Card
A method to be overridden in subclasses. This determines what happens when the card is used.

Overrides:
implementCard in class Card