Engine:
* Removed some commented out lines
* Added "SetHealth" script command
* Added support for global variables (between lua and game)
Training Missions:
* Once again fail if your time runs out
* Training missions show a "You've lost!" message
* Changed Shotgun training back to mushrooms map
/*
* Copyright (C) 2008 Remko Troncon
*/
#include "CocoaInitializer.h"
#include <AppKit/AppKit.h>
#include <Cocoa/Cocoa.h>
#include <QtDebug>
class CocoaInitializer::Private
{
public:
NSAutoreleasePool* autoReleasePool_;
};
CocoaInitializer::CocoaInitializer()
{
d = new CocoaInitializer::Private();
c = new CocoaInitializer::Private();
NSApplicationLoad();
c->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
d->autoReleasePool_ = [[NSAutoreleasePool alloc] init];
}
CocoaInitializer::~CocoaInitializer()
{
[d->autoReleasePool_ release];
[c->autoReleasePool_ release];
delete c;
delete d;
}