project_files/HedgewarsMobile/Classes/ObjcExports.m
changeset 6078 8c0cc07731e5
parent 6018 3b86826f6665
child 6247 6dfad55fd71c
--- a/project_files/HedgewarsMobile/Classes/ObjcExports.m	Fri Sep 30 22:33:28 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/ObjcExports.m	Sun Oct 02 00:57:04 2011 +0200
@@ -23,27 +23,29 @@
 #import "OverlayViewController.h"
 #import "AmmoMenuViewController.h"
 
-#pragma mark -
-#pragma mark internal variables
+
 // actual game started (controls should be enabled)
-BOOL gameRunning;
+static BOOL gameRunning;
 // black screen present
-BOOL savedGame;
+static BOOL savedGame;
 // cache the grenade time
-NSInteger grenadeTime;
+static NSInteger grenadeTime;
 // the reference to the newMenu instance
-OverlayViewController *overlay_instance;
+static OverlayViewController *overlay_instance;
 
+@implementation ObjcExports
 
-#pragma mark -
-#pragma mark functions called like oop
-void objcExportsInit() {
++(void) initialize {
     overlay_instance = [OverlayViewController mainOverlay];
     gameRunning = NO;
     savedGame = NO;
     grenadeTime = 2;
 }
 
+@end
+
+#pragma mark -
+#pragma mark functions called by objc code
 BOOL inline isGameRunning() {
     return gameRunning;
 }