-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIceState.java
More file actions
32 lines (26 loc) · 804 Bytes
/
IceState.java
File metadata and controls
32 lines (26 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package state;
/**
* Created by Beka on 17.04.17.
*/
public class IceState implements IState {
private UiController uiController;
public IceState(UiController uiController) {
this.uiController = uiController;
}
@Override
public void onRight() {
uiController.setTitle("Condition is " + getClass().getSimpleName() + ", Right, 1");
}
@Override
public void onLeft() {
uiController.setTitle("Condition is " + getClass().getSimpleName() + ", Left, 1");
}
@Override
public void onBrake() {
uiController.setTitle("Condition is " + getClass().getSimpleName() + ", Brake, 2");
}
@Override
public void onAccel() {
uiController.setTitle("Condition is " + getClass().getSimpleName() + ", Accelerate, 3");
}
}