5f73a6b4720af3ad3f185a81d6ec47fb65ac06de
12 /**
13 * Mob class.
14 */
24 /**
25 * @param x in pixels
26 * @param y in pixels
27 * @param width in pixels
28 * @param height in pixels
29 * @param dir Direction in which mob is looking
30 */
38 }
42 }
44 /**
45 * @return The X coordinate of a mob in blocks
46 */
49 }
51 /**
52 * @return The Y coordinate of mob's upper edge in blocks
53 */
56 }
58 /**
59 * @return The Y coordinate if mob's vertical center in blocks
60 */
63 }
65 /**
66 * @return The Y coordinate of mob's legs in blocks
67 */
70 }
74 }
78 }
80 /**
81 * @return Integer representing a direction in which mob is looking, where 0 is left and 1 is right
82 */
85 }
89 }
93 }
95 /**
96 * Switches direction in which mob is looking
97 */
100 }
104 }
108 }
112 }
114 /**
115 * Set's mob's dead variable to true and nothing else. It doesn't delete the
116 */
119 }
124 }
128 }
132 }
136 }
140 }
144 }
148 }
153 }
156 }
157 }
166 MOB,
167 SAND,
168 GRAVEL
169 }
172 LEFT,
173 RIGHT
174 }
175 }