-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameData.h
100 lines (79 loc) · 3.14 KB
/
GameData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//
// GameData.h
//
// Created by : Michael Heirendt
// Project : Crush
// Date : 1/11/16
//
// Copyright (c) 2016 Apportable.
// All rights reserved.
//
// -----------------------------------------------------------------
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "UIKit/UIKit.h"
#import "Person.h"
// -----------------------------------------------------------------
@interface GameData : CCNode <NSFetchedResultsControllerDelegate>
{
NSManagedObjectModel *managedObjectModel;
NSManagedObjectContext *managedObjectContext;
NSPersistentStoreCoordinator *persistentStoreCoordinator;
}
// -----------------------------------------------------------------
// properties
@property (assign, nonatomic) long highScore;
@property (assign, nonatomic) int round;
@property (assign, nonatomic) long score;
@property (nonatomic) int roundScore;
@property(assign, nonatomic) int rank;
@property (assign, nonatomic) long doubleKills;
@property (assign, nonatomic) NSMutableArray *hiScores;
@property (assign, nonatomic) int bombCount;
@property (assign,nonatomic) int bladeCount;
@property (assign, nonatomic) int tableID;
@property (assign, nonatomic) bool newPlayerFlag;
@property (retain,nonatomic,readonly) NSManagedObjectModel *managedObjectModel;
@property (retain,nonatomic,readonly) NSManagedObjectContext *managedObjectContext;
@property (retain,nonatomic,readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (retain, nonatomic) NSNumber* rank1;
@property (retain, nonatomic) NSNumber *rank2;
@property (retain, nonatomic) NSNumber *rank3;
@property (retain, nonatomic) NSNumber *rank4;
@property (retain, nonatomic) NSNumber *rank5;
@property (retain, nonatomic) NSNumber *rank6;
@property (retain, nonatomic) NSNumber *rank7;
@property (retain, nonatomic) NSNumber *rank8;
@property (retain, nonatomic) NSNumber *rank9;
@property (retain, nonatomic) NSNumber *rank10;
@property (retain, nonatomic) NSNumber *rank11;
@property (retain, nonatomic) NSNumber *rank12;
@property (retain, nonatomic) NSNumber *rank13;
@property (retain, nonatomic) NSNumber *rank14;
@property (retain, nonatomic) NSNumber *rank15;
@property (retain, nonatomic) NSNumber *rank16;
@property (retain, nonatomic) NSNumber *rank17;
@property (retain, nonatomic) NSNumber *rank18;
@property (retain, nonatomic) NSNumber *rank19;
@property (retain, nonatomic) NSNumber *rank20;
@property (retain, nonatomic) NSNumber *rank21;
@property (retain, nonatomic) NSNumber *rank22;
@property (retain, nonatomic) NSNumber *rank23;
@property (retain, nonatomic) NSNumber *rank24;
@property (retain, nonatomic) NSNumber *rank25;
@property (nonatomic) int seq1;
@property (nonatomic) int seq2;
@property (nonatomic) int seq3;
@property (nonatomic) int seq4;
// -----------------------------------------------------------------
// methods
+ (instancetype)node;
- (instancetype)init;
+(instancetype)sharedGameData;
-(void)reset;
-(void)summarizeRank:(CCLabelTTF *)rank andUser:(CCLabelTTF*) user andRankIcon:(CCSprite*)icon;
-(void)addUser;
-(void)summarizeUser;
-(void)initializeUsers;
// -----------------------------------------------------------------
@end