/* |
Copyright (C) 2014 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
|
Abstract: |
|
Defines the class that handles basic AI |
|
*/ |
|
import SpriteKit |
|
class ArtificialIntelligence { |
// MARK: Properties |
|
var character: Character |
var target: Character? |
|
// MARK: Initializers |
|
init(character: Character, target: Character?) { |
self.character = character |
self.target = target |
} |
|
// MARK: Scene Processing Support |
|
// This should be overriden in subclasses. |
func updateWithTimeSinceLastUpdate(interval: NSTimeInterval) { |
// No implementation required in the base class AI. |
} |
} |