QTfrontend/M3Panel.mm
author nemo
Thu, 01 Jul 2010 17:00:14 -0400
changeset 3603 b6b1989744ef
parent 2400 2422ea85d100
child 3697 d5b30d6373fc
permissions -rw-r--r--
Grid the landscape, and shortcircuit checks on the collision array if there are no nearby checked in collisions to be collided with. This is a big win for fire's ammoshove in particular. Also add a +2 that seemed missing in the check, and update fire accordingly.

/*
 *  M3Panel.cpp
 *  
 *
 *  Created by Vittorio on 28/09/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "M3Panel.h"
#include "M3InstallController.h"

#include <Cocoa/Cocoa.h>

class M3Panel::Private
{
public:
        M3InstallController *install;
};

M3Panel::M3Panel(void)
{
	c = new Private;
        
	c->install = [[M3InstallController alloc] init];
	[c->install retain];
        
}

M3Panel::~M3Panel()
{
	[c->install release];
	delete c;
}

void M3Panel::showInstallController()
{
        [c->install displayInstaller];
}