forked from mastifikator/FantasyJavaPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHumanMage.java
More file actions
23 lines (18 loc) · 570 Bytes
/
HumanMage.java
File metadata and controls
23 lines (18 loc) · 570 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package AbstractFactory;
public class HumanMage extends Unit implements IMage {
public HumanMage(){
System.out.println("Зачарователь рожден");
}
@Override
public void deadUnit() {
System.out.println("Зачарователь погибает");
}
@Override
public void moveUnit() {
System.out.println("Зачарователь двигается");
}
@Override
public void magicFight() {
System.out.println("Зачарователь ревращает в овцу");
}
}