ORKSpatialSpanMemoryGameRecord Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in ORKResult.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.

  seed

An integer used as the seed for the sequence.

@property (nonatomic, assign) uint32_t seed

Discussion

If you pass a specific seed value to another game, you get the same sequence.

Declared In

ORKResult.h

  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

ORKResult.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

ORKResult.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

ORKResult.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

ORKResult.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

ORKResult.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

ORKResult.h