/* |
Copyright (C) 2014 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
|
Abstract: |
|
Defines the Player class. |
|
*/ |
|
import SpriteKit |
|
class Player { |
// MARK: Properties |
|
var hero: HeroCharacter? = nil |
var charClass: HeroClass? = nil |
var livesLeft = kStartLives |
var score = 0 |
|
var moveForward = false |
var moveLeft = false |
var moveRight = false |
var moveBackward = false |
var fireAction = false |
|
#if os(iOS) |
var movementTouch: UITouch? = nil |
var targetLocation = CGPointZero |
var moveRequested = false |
#endif |
} |