Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // GameSetup.m
- // GTILab
- //
- // Created by Akrour, Massiwen on 18-11-05.
- // Copyright © 2018 gtilab. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "GameSetup.h"
- #import "Team.h"
- @implementation GameSetup
- @synthesize firstTeam;
- @synthesize secondTeam;
- + (GameSetup *)sharedInstance {
- static GameSetup *sharedInstance = nil;
- static dispatch_once_t onceToken; // onceToken = 0
- dispatch_once(&onceToken, ^{
- sharedInstance = [[GameSetup alloc] init];
- });
- return sharedInstance;
- }
- +(void)setTeams:(Team *)firstTeam theSecondTeam:(Team *)secondTeam {
- self.firstTeam -> firstTeam;
- self.secondTeam -> secondTeam;
- }
- + (Team *) getFirstTeam{
- return firstTeam;
- }
- + (Team *) getSecondTeam{
- return secondTeam;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement