#include "HotGirl.h"
#include "SpyGuy.h"
-(SpyGuy *)playMovie() {
HotGirl *hotGirl = [[HotGirl alloc] initWithActress:@"Reese Witherspoon"];
SpyGuy *spy1 = [[SpyGuy alloc] initWithActor:@"Chris Pine"];
SpyGuy *spy2 = [[SpyGuy alloc] initWithActor:@"Tom Hardy"];
while (![hotGirl hasChosenDate]) {
if ([hotGirl isOnDateWith:spy1]) {
[spy2 performPrankOn:spy1];
} else {
[spy1 performPrankOn:spy2];
}
}
return spy1;
}
#include "SpyGuy.h"
-(SpyGuy *)playMovie() {
HotGirl *hotGirl = [[HotGirl alloc] initWithActress:@"Reese Witherspoon"];
SpyGuy *spy1 = [[SpyGuy alloc] initWithActor:@"Chris Pine"];
SpyGuy *spy2 = [[SpyGuy alloc] initWithActor:@"Tom Hardy"];
while (![hotGirl hasChosenDate]) {
if ([hotGirl isOnDateWith:spy1]) {
[spy2 performPrankOn:spy1];
} else {
[spy1 performPrankOn:spy2];
}
}
return spy1;
}