well.....perhaps I oversimplified my example. I am writing a text-game in php, therefore there are some functions that are called if the player has done something, and some that are called when the player does something else. For instance:
the player is attacking a monster, so he is in the battle screen. Therefore my code includes the battle screen code. If the player wins, a function is called, if the player loses, a different function is called, if the player niether wins or loses, he can continue to attack the monster until he does win or lose. Therefore there is the possibility of the winning function being called, the losing function being called, or neither one being called; I must include (at the very least) the function statement, even if the function only contains an include() statement to the code that was in the function.
Sorry if that didn't make any sense....if there is a better way of going about this, I would be greatful for some guidance
-wyrmmage
Oh, and most of my code involves objects (although it wouldn't necessarily have to)