This commit is contained in:
Charles 2001-05-02 19:52:33 +00:00
parent b32a609fdf
commit 35fe355186
5 changed files with 48 additions and 1 deletions

View file

@ -99,6 +99,10 @@
#include "platform\pbounce.h"
#endif
#ifndef __PLATFORM_PDUAL_H__
#include "platform\pdual.h"
#endif
#ifndef __PLATFORM_PPLAYER_H__
#include "platform\pplayer.h"
#endif
@ -205,6 +209,24 @@ CNpcPlatform *CNpcPlatform::Create(sThingPlatform *ThisPlatform)
break;
}
case NPC_DUAL_PLATFORM:
{
CNpcDualPlatform *dualPlatformMaster;
platform = dualPlatformMaster = new ("dual platform master") CNpcDualPlatform;
dualPlatformMaster->setMaster( true );
CNpcDualPlatform *dualPlatformSlave;
dualPlatformSlave = new ("dual platform slave") CNpcDualPlatform;
dualPlatformSlave->setMaster( false );
dualPlatformMaster->setOtherPlatform( dualPlatformSlave );
dualPlatformSlave->setOtherPlatform( dualPlatformMaster );
dualPlatformSlave->setType( platformType );
dualPlatformSlave->setGraphic( ThisPlatform );
dualPlatformSlave->setTiltable( false );
break;
}
default:
{
ASSERT( 0 );