Store message in ActionWithParameters.

This commit is contained in:
asofold 2012-11-09 11:57:33 +01:00
parent 006d987518
commit 71aaba2ea8

View File

@ -30,6 +30,8 @@ public abstract class ActionWithParameters extends Action {
/** The parts of the message. */
protected final ArrayList<Object> messageParts;
protected final String message;
protected boolean needsParameters = true;
/**
@ -48,6 +50,7 @@ public abstract class ActionWithParameters extends Action {
super(name, delay, repeat);
messageParts = new ArrayList<Object>();
this.message = message;
// Assume we don't nee parameters.
needsParameters = false;
parseMessage(message);