Skip to content

Instantly share code, notes, and snippets.

Created November 25, 2011 07:22
Show Gist options
  • Save anonymous/1392989 to your computer and use it in GitHub Desktop.
Save anonymous/1392989 to your computer and use it in GitHub Desktop.
Egg
typedef enum EggState {
kEggStatePrepared, // Represents egg is ready to fall
kEggStateFalling, // Represents egg is falling down
kEggStateBroken, // Represents egg fell down and is broken
kEggStateBasket // Represents egg was collected in basket
}EggState;
@interface Egg : UIView {
// Represents the egg image.
UIImageView *eggImageView;
// Represents the state of an egg at any point of time.
EggState state;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment