aboutsummaryrefslogtreecommitdiff
path: root/src/esieequest/controller/commands/ForwardCommand.java
blob: 9134fdce0493a87840dd7b459636d1abfc203547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package esieequest.controller.commands;

import esieequest.model.Game;
import esieequest.model.map.Direction;
import esieequest.view.Viewable;

/**
 * Allows the user to move forward in the Map (in the Room at the Direction he
 * is facing).
 * 
 * @author Pacien TRAN-GIRARD
 */
public class ForwardCommand implements Executable {

	@Override
	public void execute(final String argument, final Game game, final Viewable view) {

		final Direction direction = game.getPlayer().getCurrentDirection();

		Command.GO.execute(direction.name(), game, view);

	}

}