-
-
Save fitomad/96c4a52e3a2ec5ffefeb3ce62c9d436f to your computer and use it in GitHub Desktop.
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
public protocol Rover | |
{ | |
/// Nombre del Rover | |
var name: String { get } | |
/// Estado de la batería | |
var batteryLevel: Int { get } | |
/// Velocidad actual | |
var speed: Double { get } | |
/** | |
Los construimos con un nombre único | |
*/ | |
init(named name: String) | |
/// Orden de movimiento a unas determinadas coordenadas | |
func move(to position: CLLocation) -> Bool | |
/// El Rover debe deterse | |
func stop() -> Void | |
/// Llega el invierno | |
func hibernate() -> Void | |
/// Empieza a realizar los experimientos | |
func startExperiment() -> Void | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment