Repository navigation
Expand file tree
/
Copy pathJaeger.java
More file actions
115 lines (90 loc) · 2.28 KB
/
Copy pathJaeger.java
File metadata and controls
115 lines (90 loc) · 2.28 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
package com.startjava.lesson_2_3.robot;
public class Jaeger {
private String modelName;
private String mark;
private String origin;
private String weapon;
private float weight;
private float height;
private int speed;
private int strength;
private int armor;
public Jaeger(String modelName, String mark, String origin, String weapon,
float weight, float height, int speed, int strength, int armor) {
this.modelName = modelName;
this.mark = mark;
this.origin = origin;
this.weapon = weapon;
this.weight = weight;
this.height = height;
this.speed = speed;
this.strength = strength;
this.armor = armor;
}
public String getModelName() {
return modelName;
}
public void setModelName(String modelName) {
this.modelName = modelName;
}
public String getMark() {
return mark;
}
public void setMark(String mark) {
this.mark = mark;
}
public String getOrigin() {
return origin;
}
public void setOrigin(String origin) {
this.origin = origin;
}
public String getWeapon() {
return weapon;
}
public void setWeapon(String weapon) {
this.weapon = weapon;
}
public float getWeight() {
return weight;
}
public void setWeight(float weight) {
this.weight = weight;
}
public float getHeight() {
return height;
}
public void setHeight(float height) {
this.height = height;
}
public int getSpeed() {
return speed;
}
public void setSpeed(int speed) {
this.speed = speed;
}
public int getStrength() {
return strength;
}
public void setStrength(int strength) {
this.strength = strength;
}
public int getArmor() {
return armor;
}
public void setArmor(int armor) {
this.armor = armor;
}
public boolean drift() {
return true;
}
public void move() {
System.out.println(modelName + " is moving");
}
public String scanKaiju() {
return modelName + " is scanning";
}
public void useWeapon() {
System.out.println(modelName + " " + weapon + " is activated");
}
}