ORKSpatialSpanMemoryGameRecord Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying NSSecureCoding |
Declared in | ORKSpatialSpanMemoryResult.h |
The ORKSpatialSpanMemoryGameRecord
class records the results of a
single playable instance of the spatial span memory game.
A spatial span memory game record is typically generated by the framework as the task proceeds. When the task completes, it may be appropriate to serialize it for transmission to a server, or to immediately perform analysis on it.
These records are found in the records
property of an ORKSpatialSpanMemoryResult
object.
sequence
An array of NSNumber
objects that represent the sequence that was presented to the user.
@property (nonatomic, copy, nullable) NSArray<NSNumber*> *sequence
Discussion
The sequence is an array of length sequenceLength
that contains a random permutation of integers (0..gameSize
-1)
Declared In
ORKSpatialSpanMemoryResult.h
gameSize
The size of the game.
@property (nonatomic, assign) NSInteger gameSize
Discussion
The game size is the number of targets, such as flowers, in the game.
Declared In
ORKSpatialSpanMemoryResult.h
targetRects
An array of NSValue
objects wrapped in CGRect
that record the frames of the target
tiles as displayed, relative to the step view.
@property (nonatomic, copy, nullable) NSArray<NSValue*> *targetRects
Declared In
ORKSpatialSpanMemoryResult.h
touchSamples
An array of ORKSpatialSpanMemoryGameTouchSample
objects that record the onscreen locations
the user tapped during the game.
@property (nonatomic, copy, nullable) NSArray<ORKSpatialSpanMemoryGameTouchSample*> *touchSamples
Declared In
ORKSpatialSpanMemoryResult.h
gameStatus
A value indicating whether the user completed the sequence and, if the game was not completed, why not.
@property (nonatomic, assign) ORKSpatialSpanMemoryGameStatus gameStatus
Declared In
ORKSpatialSpanMemoryResult.h
score
An integer that records the number of points obtained during this game toward the total score.
@property (nonatomic, assign) NSInteger score
Declared In
ORKSpatialSpanMemoryResult.h