|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSkier
This class models a skier using a CSE 142 ski resort.
Each Skier has several properties that are maintained by the methods of the object.
| Constructor Summary | |
Skier(String skierName,
char abilityLevel)
Create a new skier object. |
|
| Method Summary | |
void |
crash()
The Trail has decided that we didn't make it down the slope. |
int |
getCrashCount()
Get the current crash count of this skier. |
char |
getLevel()
Get the ability level of this skier. |
String |
getName()
Get the name of this skier. |
int |
getSwoopCount()
Get the current swoop count of this skier. |
boolean |
isAtTop()
Get the status of whether or not we are at the top of a Lift. |
void |
setAtTop(boolean top)
Set the status of whether or not we are at the top of a Lift. |
void |
setLevel(char abilityLevel)
Set the ability level of this skier. |
void |
swoop()
We are swooping down a Trail, graceful as can be. |
String |
toString()
Return a String describing this Skier. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Skier(String skierName,
char abilityLevel)
skierName - the name of this sportspersonabilityLevel - the ability level, 'b', 'i', or 'a'Skier property descriptions| Method Detail |
public String getName()
public char getLevel()
Skier property descriptionspublic void setLevel(char abilityLevel)
abilityLevel - the new one character ability level tagSkier property descriptionspublic void setAtTop(boolean top)
top - true if at top, false if at basepublic boolean isAtTop()
public void swoop()
public void crash()
public int getCrashCount()
public int getSwoopCount()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||