質問編集履歴
1
ソースコードの変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,26 +72,28 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
+
```
|
76
|
+
|
75
77
|
package com.project.main;
|
76
78
|
|
77
79
|
|
78
80
|
|
79
81
|
public class Main{
|
80
82
|
|
83
|
+
|
84
|
+
|
81
85
|
public static void main(String[] args){
|
82
86
|
|
83
87
|
|
84
88
|
|
85
89
|
Matango m = new com.project.characters.Matango();
|
86
90
|
|
87
|
-
|
88
|
-
|
89
91
|
superHero sh = new com.project.characters.superHero();
|
90
92
|
|
93
|
+
|
94
|
+
|
91
95
|
sh.run();
|
92
96
|
|
93
|
-
|
94
|
-
|
95
97
|
sh.attack(m);
|
96
98
|
|
97
99
|
|
@@ -100,11 +102,13 @@
|
|
100
102
|
|
101
103
|
}
|
102
104
|
|
103
|
-
|
104
|
-
|
105
|
-
|
105
|
+
```
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
106
|
-
|
111
|
+
```
|
107
|
-
|
108
112
|
|
109
113
|
package com.project.characters;
|
110
114
|
|
@@ -112,15 +116,25 @@
|
|
112
116
|
|
113
117
|
public class Matango{
|
114
118
|
|
119
|
+
|
120
|
+
|
115
121
|
int hp;
|
116
122
|
|
123
|
+
|
124
|
+
|
117
125
|
final int LEVEL = 10;
|
118
126
|
|
127
|
+
|
128
|
+
|
119
129
|
}
|
120
130
|
|
121
|
-
|
122
|
-
|
123
|
-
|
131
|
+
```
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
```
|
124
138
|
|
125
139
|
package com.project.characters;
|
126
140
|
|
@@ -168,6 +182,10 @@
|
|
168
182
|
|
169
183
|
|
170
184
|
|
185
|
+
```
|
186
|
+
|
187
|
+
|
188
|
+
|
171
189
|
-----------------------------
|
172
190
|
|
173
191
|
|
@@ -186,4 +204,14 @@
|
|
186
204
|
|
187
205
|
|
188
206
|
|
207
|
+
フォルダ構成
|
208
|
+
|
209
|
+
![イメージ説明](7e0791cb109bd6dd2526e1d2c374c346.png)
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
![イメージ説明](397f15893dfef78dc2703cdc050479fa.png)
|
214
|
+
|
215
|
+
|
216
|
+
|
189
|
-
|
217
|
+
フォルダ構成の仕方も何かアドバイスあればお願いします。
|