Index
All Classes and Interfaces|All Packages
G
- getAmount() - Method in class SodaCan
- getThirstStatus() - Method in class Person
-
A person is "very thirsty" if they drank less than 175, "thirsty" if they drank less than 375, "satisfied" if they drank at least 375
- gulp() - Method in class SodaCan
-
remove up to 50cc of soda from this, provided this is open
- gulpFrom(SodaCan) - Method in class Person
-
Take a gulp from s, modifying the amount this has consumed
I
- isOpen() - Method in class SodaCan
O
- open() - Method in class SodaCan
-
open this SodaCan
P
- Person - Class in Unnamed Package
-
Capture a person who can drink soda.
- Person(String) - Constructor for class Person
-
Construct a new Person with the given name.
S
- sip() - Method in class SodaCan
-
remove up to 10cc of soda from this, provided this is open
- sipFrom(SodaCan) - Method in class Person
-
Take a sip from s, modifying the amount this has consumed
- SodaCan - Class in Unnamed Package
-
Capture a Can of Soda.
- SodaCan(String) - Constructor for class SodaCan
-
Construct a new SodaCan of the specified type.
T
- toString() - Method in class Person
- toString() - Method in class SodaCan
All Classes and Interfaces|All Packages