RuneHive-Game
Loading...
Searching...
No Matches
Appearance.java
Go to the documentation of this file.
1package com.runehive.game.world.entity.mob.player.appearance;
2
3import com.runehive.Config;
4
5/**
6 * Represents a {@code Player}s appearance.
7 *
8 * @author SeVen
9 */
10public class Appearance {
11
12 public static final int HEAD = 0;
13
14 public static final int JAW = 1;
15
16 public static final int TORSO = 2;
17
18 public static final int ARMS = 3;
19
20 public static final int HANDS = 4;
21
22 public static final int LEGS = 5;
23
24 public static final int FEET = 6;
25
26 private Gender gender;
27
28 private int head;
29
30 private int beard;
31
32 private int torso;
33
34 private int arms;
35
36 private int hands;
37
38 private int legs;
39
40 private int feet;
41
42 private int hairColor;
43
44 private int torsoColor;
45
46 private int legsColor;
47
48 private int feetColor;
49
50 private int skinColor;
51
52 public Appearance(final Gender gender, final int head, final int beard, final int torso, final int arms, final int hands, final int legs, final int feet, int hairColor, int torsoColor, int legsColor, int feetColor, int skinColor) {
53 this.gender = gender;
54 this.head = head;
55 this.beard = beard;
56 this.torso = torso;
57 this.arms = arms;
58 this.hands = hands;
59 this.legs = legs;
60 this.feet = feet;
61 this.hairColor = hairColor;
62 this.torsoColor = torsoColor;
63 this.legsColor = legsColor;
64 this.feetColor = feetColor;
65 this.skinColor = skinColor;
66 }
67
68 /**
69 * @return the arms
70 */
71 public int getArms() {
72 return arms;
73 }
74
75 /**
76 * @return the feet
77 */
78 public int getFeet() {
79 return feet;
80 }
81
82 /**
83 * @return the gender
84 */
85 public Gender getGender() {
86 return gender;
87 }
88
89 /**
90 * @return the hands
91 */
92 public int getHands() {
93 return hands;
94 }
95
96 /**
97 * @return the head
98 */
99 public int getHead() {
100 return head;
101 }
102
103 /**
104 * @return The beard
105 */
106 public int getBeard() {
107 return beard;
108 }
109
110 /**
111 * @return the legs
112 */
113 public int getLegs() {
114 return legs;
115 }
116
117 /**
118 * @return the torso
119 */
120 public int getTorso() {
121 return torso;
122 }
123
124 /**
125 * @param arms
126 * the arms to set
127 */
128 public void setArms(final int arms) {
129 this.arms = arms;
130 }
131
132 /**
133 * @param feet
134 * the feet to set
135 */
136 public void setFeet(final int feet) {
137 this.feet = feet;
138 }
139
140 /**
141 * @param gender
142 * the gender to set
143 */
144 public void setGender(final Gender gender) {
145 this.gender = gender;
146 }
147
148 /**
149 * @param hands
150 * the hands to set
151 */
152 public void setHands(final int hands) {
153 this.hands = hands;
154 }
155
156 /**
157 * @param head
158 * the head to set
159 */
160 public void setHead(final int head) {
161 this.head = head;
162 }
163
164 /**
165 * @param beard
166 * the jaw to set
167 */
168 public void setJaw(final int beard) {
169 this.beard = beard;
170 }
171
172 /**
173 * @param legs
174 * the legs to set
175 */
176 public void setLegs(final int legs) {
177 this.legs = legs;
178 }
179
180 /**
181 * @param torso
182 * the torso to set
183 */
184 public void setTorso(final int torso) {
185 this.torso = torso;
186 }
187
188 /**
189 * @return the hairColor
190 */
191 public int getHairColor() {
192 return hairColor;
193 }
194
195 /**
196 * @param hairColor
197 * the hairColor to set
198 */
199 public void setHairColor(int hairColor) {
200 this.hairColor = hairColor;
201 }
202
203 /**
204 * @return the torsoColor
205 */
206 public int getTorsoColor() {
207 return torsoColor;
208 }
209
210 /**
211 * @param torsoColor
212 * the torsoColor to set
213 */
214 public void setTorsoColor(int torsoColor) {
215 this.torsoColor = torsoColor;
216 }
217
218 /**
219 * @return the legsColor
220 */
221 public int getLegsColor() {
222 return legsColor;
223 }
224
225 /**
226 * @param legsColor
227 * the legsColor to set
228 */
229 public void setLegsColor(int legsColor) {
230 this.legsColor = legsColor;
231 }
232
233 /**
234 * @return the feetColor
235 */
236 public int getFeetColor() {
237 return feetColor;
238 }
239
240 /**
241 * @param feetColor
242 * the feetColor to set
243 */
244 public void setFeetColor(int feetColor) {
245 this.feetColor = feetColor;
246 }
247
248 /**
249 * @return the skinColor
250 */
251 public int getSkinColor() {
252 return skinColor;
253 }
254
255 /**
256 * @param skinColor
257 * the skinColor to set
258 */
259 public void setSkinColor(int skinColor) {
260 this.skinColor = skinColor;
261 }
262
263 @Override
264 public String toString() {
265 return String.format("[gen= %s] [head= %d] [jaw= %d] [tor= %d] [arm= %d] [han= %d] [leg= %d] [feet= %d]", getGender().name().toLowerCase(), getHead(), getBeard(), getTorso(), getArms(), getHands(), getLegs(), getFeet());
266 }
267
268}
Appearance(final Gender gender, final int head, final int beard, final int torso, final int arms, final int hands, final int legs, final int feet, int hairColor, int torsoColor, int legsColor, int feetColor, int skinColor)
Represents a gender for a player character.
Definition Gender.java:8