RuneHive-Game
Loading...
Searching...
No Matches
Command.java
Go to the documentation of this file.
1
package
com.runehive.game.world.entity.mob.player.command;
2
3
import
com.runehive.game.world.entity.mob.player.Player;
4
5
public
abstract
class
Command
{
6
7
private
final
String[]
names
;
8
9
public
Command
(String...
names
) {
10
this.names =
names
;
11
}
12
13
public
abstract
void
execute
(
Player
player
,
CommandParser
parser);
14
15
public
String[]
getNames
() {
16
return
names
;
17
}
18
19
}
com.runehive.game.world.entity.mob.player.Player
This class represents a character controlled by a player.
Definition
Player.java:125
com.runehive.game.world.entity.mob.player.command.Command.Command
Command(String... names)
Definition
Command.java:9
com.runehive.game.world.entity.mob.player.command.Command.execute
abstract void execute(Player player, CommandParser parser)
com.runehive.game.world.entity.mob.player.command.Command.getNames
String[] getNames()
Definition
Command.java:15
com.runehive.game.world.entity.mob.player.command.Command.names
final String[] names
Definition
Command.java:7
com.runehive.game.world.entity.mob.player.command.CommandParser
Definition
CommandParser.java:9
com.runehive.game.world.entity.mob.player