Taking a look in FCommand.

This commit is contained in:
Olof Larsson 2013-04-10 10:00:40 +02:00
parent 14715d1cfc
commit 879e8b4170

View File

@ -24,6 +24,8 @@ public abstract class FCommand extends MCommand<Factions>
public FPlayer fme; public FPlayer fme;
public Faction myFaction; public Faction myFaction;
// TODO: All these are "command reqs"
public boolean senderMustBeMember; public boolean senderMustBeMember;
public boolean senderMustBeOfficer; public boolean senderMustBeOfficer;
public boolean senderMustBeLeader; public boolean senderMustBeLeader;
@ -122,6 +124,9 @@ public abstract class FCommand extends MCommand<Factions>
// Assertions // Assertions
// -------------------------------------------- // // -------------------------------------------- //
// These are not used. Remove in the future if no need for them arises.
/*
public boolean assertHasFaction() public boolean assertHasFaction()
{ {
if (me == null) return true; if (me == null) return true;
@ -144,12 +149,14 @@ public abstract class FCommand extends MCommand<Factions>
return false; return false;
} }
return true; return true;
} }*/
// -------------------------------------------- // // -------------------------------------------- //
// Argument Readers // Argument Readers
// -------------------------------------------- // // -------------------------------------------- //
// TODO: Convert these arg-readers to MCore ArgReaders.
// FPLAYER ====================== // FPLAYER ======================
public FPlayer strAsFPlayer(String name, FPlayer def, boolean msg) public FPlayer strAsFPlayer(String name, FPlayer def, boolean msg)
{ {