This commit is contained in:
parent
b32a609fdf
commit
35fe355186
5 changed files with 48 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue