source: lost-haven/main/Player.java@ 0870468

Last change on this file since 0870468 was 0870468, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 4 years ago

Move all global classes into the main package

  • Property mode set to 100644
File size: 768 bytes
Line 
1package main;
2
3public class Player extends Creature {
4 private Point target;
5 private int experience;
6 private int gold;
7
8 public Player() {
9 super();
10 target = new Point(0, 0);
11 }
12
13 public Player(String name) {
14 super(name);
15 target = new Point(0, 0);
16 }
17
18 public Player(String name, Gender gender) {
19 super(name, gender);
20 target = new Point(0, 0);
21 }
22
23 public int getExperience() {
24 return experience;
25 }
26
27 public int getGold() {
28 return gold;
29 }
30
31 public Point getTarget() {
32 return target;
33 }
34
35 public void setExperience(int experience) {
36 this.experience = experience;
37 }
38
39 public void setGold(int gold) {
40 this.gold = gold;
41 }
42
43 public void setTarget(Point target) {
44 this.target = target;
45 }
46}
Note: See TracBrowser for help on using the repository browser.