|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroup1.model.gameobject.GameObj
group1.model.gameobject.item.Item
group1.model.gameobject.item.Mushroom
public class Mushroom
A classic Mario mushroom. Restores a small amount of HP. (Unlike the classic mushroom, this doesn't move, though that'd be easy to add.)
| Field Summary |
|---|
| Fields inherited from class group1.model.gameobject.GameObj |
|---|
acceleration, ENEMY_TEAM, GRID_SPACE_SIZE, id, isMovable, JEFF_TEAM, myState, NO_TEAM, regions, shape, THICKNESS, velocity |
| Constructor Summary | |
|---|---|
Mushroom(double x,
double y,
PictureList p)
Constructor. |
|
| Method Summary | |
|---|---|
void |
itemEffect(Jeff jeff)
Item effect: Give Jeff 5 HP and 200 points, play a sound, and destroy this object. |
| Methods inherited from class group1.model.gameobject.item.Item |
|---|
makeItemRegions, move |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mushroom(double x,
double y,
PictureList p)
x - The x-position.y - The y-position.p - The picture list.| Method Detail |
|---|
public void itemEffect(Jeff jeff)
itemEffect in class Itemjeff - The main character.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||