-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rowlet.java
55 lines (48 loc) · 1.13 KB
/
Rowlet.java
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
package Maestus.Porkyman;
import java.util.List;
/**
* Rowlet is a grass type pockymon with self healing capacity
* https://bulbapedia.bulbagarden.net/wiki/Rowlet_(Pok%C3%A9mon)
* @author Oracle
*
*/
public class Rowlet extends Pockymon {
/**
* Constructs a new Rowlet without a nickname
* @param skills
* @param team
*/
public Rowlet(List<Skill> skill, int team) {
super(722, Type.GRASS, Type.NULL, "Rowlet", (int)(200 + 10*Math.random()), skill, team);
}
/**
* Constructs a new Rowlet with a nickname
* @param nickname
* @param skills
* @param team
*/
public Rowlet(String nickname, List<Skill> skill, int team) {
super(722, Type.GRASS, Type.NULL, nickname, (int)(200 + 10*Math.random()), skill, team);
}
/**
* Imagine an owl in a tree
*/
@Override
public void speak() {
System.out.println("Hoot hoot.");
}
/**
* Fanfare for flavor text, not function
*/
@Override
public void attack(Pockymon other) {
System.out.println(getNickname() + " pecks the brains out of " + other.getNickname() + ".");
}
/**
* The pockymon's species
*/
@Override
public String toString() {
return "Rowlet";
}
}