Activity base definition like so:
PHP Code:
public class Activity
{
private String sActivityName;
private int iChangeConditionBy;
// add constructors and base methods. Then implement:
public void performActivity(Buddy b); // give Buddy object a method to modifyConditionBy(int)
// OR
public int modifyConditionBy(); // handled in Buddy object instead
}
The main class should be responsible for assigning the menus itself. Whether it be numbers or textual on first letter based; checking the Activity and pulling the activity name out will give you what you need. Start with numbers as its easier, then do the string (which is why you should let the main deal with this).
Also, in the future please wrap code with [php][/php] or [code][/code] tags as it preserves the formatting.
Activity wise, I wouldn't pet or sleep my shovel. I'd store and. . . stroke it. lol.
Edit:
Actually, noting the phrases used here for the activities, make activity like so:
PHP Code:
public class Activity
{
private String sActivityname;
private int iModifyCondition;
private Buddy buddy;
//. . .
public void modifyCondition();
}
You'll need Buddy's name for a part of the activity name.