Created
November 25, 2011 07:22
-
-
Save anonymous/1392989 to your computer and use it in GitHub Desktop.
Egg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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