-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSquirtle.java
More file actions
47 lines (43 loc) · 1016 Bytes
/
Copy pathSquirtle.java
File metadata and controls
47 lines (43 loc) · 1016 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package pokemonG;
public class Squirtle extends Pokemon {
private void superAttack(Pokemon aim){
//something
return ;
}
private void runAway(){
System.out.println("٩๏̯͡๏۶(̅_̅_̅_̅(̅_̅_̅_̅_̅_̅_̅_̅_̅̅_̅()ڪے~");
}
private void vampirize(Pokemon aim){
while(aim.cp>10) {
this.cp++;
aim.cp--;
}
}
Squirtle(){
super(70,40);
}
@Override
public void wierdSound() {
System.out.println("squirt");
}
@Override
public int attack(Pokemon aim){
if(aim.curretnHp==aim.maxHp){
superAttack(aim);
return 0;
}
else if(this.curretnHp<(aim.curretnHp-100)&&this.cp<aim.cp){
runAway();
wierdSound();
return 0;
}
else if(this.cp<aim.cp){
vampirize(aim);
return 0;
}
else{
aim.curretnHp-=this.cp;
}
return 0;
}
}