In the example below is stateClass: AnyClass
an actual instance of a class that for example I could then call to get stateClass.name
or is it simply a reference to the class type. My feeling is that from the validChange
line that its just a reference to Class Type not an actual instance of any class that I can pull data out of?
override func isValidNextState(stateClass: AnyClass) -> Bool {
let validChange = stateClass is MonsterAttack.Type
return validChange
}