📄 messagequeue.java
字号:
package cn.org.matrix.gmatrix.gameLab.messages;
import cn.org.matrix.gmatrix.gameLab.GameObjectQueue;
/**
* 消息队列类:用于显示角色语言和NPC语言、系统的信息
* @author cleverpig
*
*/
public class MessageQueue extends GameObjectQueue{
public MessageQueue(){
super();
}
/**
* 查询消息
* @param msgID 消息ID
* @return 返回的显示信息,如果没找到则返回null
*/
public String findContent(String msgID){
if (this.containsKey(msgID)){
if (this.get(msgID)==null){
return null;
}
else{
return this.get(msgID).toString();
}
}
else{
return null;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -