package cn.edu.nju.software.configure;
public class GameActionInfo {
private String actionName;
private String key;
private String iconPath;
private String info;
private boolean tag;
private int id;
public GameActionInfo() {
actionName = null;
key = null;
iconPath = null;
info = null;
tag=false;
id=0;
}
public GameActionInfo(int id, String actionName) {
this();
setId(id);
setActionName(actionName);
}
public GameActionInfo(String an, String key, String path) {
this();
this.actionName = an;
this.key = key;
this.iconPath = path;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public boolean isTag() {
return tag;
}
public void setTag(boolean tag) {
this.tag = tag;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
public String toString(){
return (actionName+" " + key+ " "+ iconPath);
}
public void setActionName(String actionName) {
this.actionName = actionName;
}
public String getActionName() {
return actionName;
}
public void setKey(String key) {
this.key = key;
}
public String getKey() {
return key;
}
public void setIconPath(String path) {
this.iconPath = path;
}
public String getIconPath() {
return iconPath;
}
}
|