package vooga.rts.util;
import java.awt.image.BufferedImage;
import java.util.Map;
import vooga.rts.resourcemanager.ResourceManager;
/**
* This class stores information relevant to anything that will display Actions
* onto the GUI
*
* @author Kevin Oh
* @modified Francesco Agosti
*
*/
public class Information {
private String myName = "";
private String myDescription = "";
private Map<String, Integer> myCost;
private int myUniqueID; // for networking
private BufferedImage myButtonImage;
public Information(String name, String description, String buttonImagePath,
Map<String, Integer> cost) {
myName = name;
myDescription = description;
myCost = cost;
myButtonImage = ResourceManager.getInstance().<BufferedImage> getFile(
buttonImagePath, BufferedImage.class);
}
/**
* Returns the name
*
* @return name
*/
public String getName() {
return myName;
}
/**
* Returns the filepath of the buttonImage to be used by a Action Button
*
* @return
*/
public BufferedImage getButtonImage() {
return myButtonImage;
}
/**
* Returns the description
*
* @return description
*/
public String getDescription() {
return myDescription;
}
/**
* Returns the cost
*
* @return cost
*/
public Map<String, Integer> getCost() {
return myCost;
}
}