Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
+31 -34
View File
@@ -15,54 +15,51 @@ import engine.objects.AbstractGameObject;
import engine.objects.PlayerCharacter;
/**
*
* @author Eighty
*
*/
public class FlashMsgCmd extends AbstractDevCmd {
public FlashMsgCmd() {
public FlashMsgCmd() {
super("flash");
}
@Override
protected void _doCmd(PlayerCharacter pcSender, String[] args,
AbstractGameObject target) {
if (args.length != 1 || args[0].isEmpty()) {
this.sendUsage(pcSender);
return;
}
ChatManager.chatSystemFlash(args[0]);
}
@Override
protected void _doCmd(PlayerCharacter pcSender, String[] args,
AbstractGameObject target) {
if (args.length != 1 || args[0].isEmpty()) {
this.sendUsage(pcSender);
return;
}
ChatManager.chatSystemFlash(args[0]);
}
/**
* This function is called by the DevCmdManager. Override to avoid splitting
* argString into String array, since flash displays full String as message,
* then calls the subclass specific _doCmd method.
*
*/
/**
* This function is called by the DevCmdManager. Override to avoid splitting
* argString into String array, since flash displays full String as message,
* then calls the subclass specific _doCmd method.
*/
@Override
public void doCmd(PlayerCharacter pcSender, String argString,
AbstractGameObject target) {
String[] args = new String[1];
args[0] = argString;
@Override
public void doCmd(PlayerCharacter pcSender, String argString,
AbstractGameObject target) {
String[] args = new String[1];
args[0] = argString;
if (pcSender == null) {
return;
}
if (pcSender == null) {
return;
}
this._doCmd(pcSender, args, target);
}
this._doCmd(pcSender, args, target);
}
@Override
protected String _getUsageString() {
@Override
protected String _getUsageString() {
return "' /flash message'";
}
}
@Override
protected String _getHelpString() {
@Override
protected String _getHelpString() {
return "Flashes system message to all players";
}
}
}