1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
Matej Jan 74ccf177c5 Adding missing folders
git-svn-id: http://xni.googlecode.com/svn/XNI@55 ac433895-eea3-a490-d80a-17149a75e588
2011-02-01 15:47:13 +00:00

60 lines
927 B
Objective-C

//
// Guide.m
// XNI
//
// Created by Matej Jan on 7.12.10.
// Copyright 2010 Retronator. All rights reserved.
//
#import "Guide.h"
#import "Guide+Internal.h"
#import "Retronator.Xni.Framework.h"
#import "GameWindow+Internal.h"
#import "GameViewController.h"
@implementation Guide
static Guide *instance = nil;
- (id) initWithGame:(Game*)theGame;
{
self = [super init];
if (self != nil) {
game = theGame;
}
return self;
}
+ (void) initializeWithGame:(Game *)theGame
{
if (!instance) {
instance = [[Guide alloc] initWithGame:theGame];
}
}
@synthesize isVisible;
+ (void) showAchievements {
[instance showAchievements];
}
+ (void) showLeaderboard {
[instance showLeaderboard];
}
+ (Guide*) getInstance {
return instance;
}
- (void) showAchievements {
[game.window.gameViewController showAchievementsView];
}
- (void) showLeaderboard {
[game.window.gameViewController showLeaderboardView];
}
@end