This file contains 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
import UIKit | |
class HomeBaseVC: UIViewController, SpyDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
func didFindWeaponOfMassDestruction(found: Bool) { | |
// Handle the received data here |
This file contains 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
import UIKit | |
protocol SpyDelegate { | |
func didFindWeaponOfMassDestruction(found : Bool) | |
} | |
class EnemyBaseVC: UIViewController { | |
let hasWeaponOfMassDescrtruction : Bool = true | |
var delegate : SpyDelegate? |
This file contains 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
import UIKit | |
class HomeBaseVC: UIViewController, SpyDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
func didFindWeaponOfMassDestruction(found: Bool) { | |
// Handle the received data here |
This file contains 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
import UIKit | |
class HomeBaseVC: UIViewController, SpyDelegate { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
func didFindWeaponOfMassDestruction(found: Bool) { | |
// Handle the received data here |
This file contains 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
import UIKit | |
protocol SpyDelegate { | |
func didFindWeaponOfMassDestruction(found : Bool) | |
} | |
class EnemyBaseVC: UIViewController { | |
let hasWeaponOfMassDescrtruction : Bool = true | |
var delegate : SpyDelegate? |
This file contains 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
import UIKit | |
protocol SpyDelegate { | |
func didFindWeaponOfMassDestruction(found : Bool) | |
} | |
class EnemyBaseVC: UIViewController { | |
let hasWeaponOfMassDescrtruction : Bool = true | |
var delegate : SpyDelegate? |
This file contains 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
import UIKit | |
protocol SpyDelegate { | |
func didFindWeaponOfMassDestruction(found : Bool) | |
} | |
class EnemyBaseVC: UIViewController { | |
let hasWeaponOfMassDescrtruction : Bool = true |
This file contains 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
import UIKit | |
class EnemyBaseVC: UIViewController { | |
let hasWeaponOfMassDescrtruction : Bool = true | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
This file contains 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
protocol Animal{ | |
var isIdle : Bool? {get set} | |
func run() | |
func stop() | |
} | |
protocol Eye{ | |
func closeEyesAndSleep() | |
func openEyesAndLookAround() | |
} |
This file contains 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
class Cat : Eye{ | |
var isIdle: Bool? = true | |
func closeEyesAndSleep() { | |
if isIdle == true{ | |
print("Cat is sleeping now") | |
}else{ | |
print("Cat will NOT sleep now") | |
} | |
} |