June 2014
Beginner to intermediate
434 pages
9h 49m
English
We will continue to add states to the game objects, and this time, we will update the Hunter class. We're going to animate the process of reloading the arrow and will limit the shooting rate. Let's do this using the following steps:
Hunter.h file and add HunterState enum right after the last #import directive:typedef enum HunterState
{
HunterStateIdle,
HunterStateAiming,
HunterStateReloading
} HunterState;hunterState to the Hunter class as follows:@property (nonatomic, assign) HunterState hunterState;
getReadyToShootAgain using the following line of code:-(void)getReadyToShootAgain;
Hunter.m ...