{
case EUnitOfficeEmployee:
{
switch ( LibMath.getRandom( 0, 3 ) )
{
default: return new Bot( new BotPattern( BotPatternBase.EOfficeEmployee1, iKind ), Bot.BotType.ETypeFriend, iAnchor, null, BotJob.EStandStill, null, iFacingAngle, iActions, BotHealth.ECivilian, iID, BotHanded.ERightHanded );
}
//break;
}
case EUnitSecurity:
{
switch ( LibMath.getRandom( 0, 1 ) )
{
case 0: return new Bot( new BotPattern( BotPatternBase.ESecurityLight, iKind ), Bot.BotType.ETypeEnemy, iAnchor, null, BotJob.EAttackPlayerFire, new Artefact[] { new Artefact( ArtefactType.ESpaz12 ) }, iFacingAngle, iActions, BotHealth.ESecurity, iID, BotHanded.ERightHanded );
case 1: return new Bot( new BotPattern( BotPatternBase.ESecurityHeavy, iKind ), Bot.BotType.ETypeEnemy, iAnchor, null, BotJob.EAttackPlayerFire, new Artefact[] { new Artefact( ArtefactType.ESpaz12 ) }, iFacingAngle, iActions, BotHealth.ESecurity, iID, BotHanded.ERightHanded );
}
break;
}
case EUnitPilot:
{
switch ( LibMath.getRandom( 0, 1 ) )
{
case 0: return new Bot( new BotPattern( BotPatternBase.EPilot1, iKind ), Bot.BotType.ETypeFriend, iAnchor, new Point2D.Float[] { new Point2D.Float( 7.0f, 4.0f ), new Point2D.Float( 7.0f, 10.0f ), }, BotJob.EWalkWaypoints, new Artefact[] { new Artefact( ArtefactType.ESpaz12 ) }, iFacingAngle, iActions, BotHealth.ECivilian, iID, BotHanded.ERightHanded );
case 1: return new Bot( new BotPattern( BotPatternBase.EPilot1, iKind ), Bot.BotType.ETypeFriend, iAnchor, new Point2D.Float[] { new Point2D.Float( 7.0f, 4.0f ), new Point2D.Float( 7.0f, 10.0f ), }, BotJob.EWalkWaypoints, new Artefact[] { new Artefact( ArtefactType.ESpaz12 ) }, iFacingAngle, iActions, BotHealth.ECivilian, iID, BotHanded.ERightHanded );
}
break;
}
case EUnitSpecialForces:
{
switch ( LibMath.getRandom( 0, 1 ) )
{
case 0: return new Bot( new BotPattern( BotPatternBase.ESpecialForces, iKind ), Bot.BotType.ETypeFriend, iAnchor, null, BotJob.EWatchPlayer, new Artefact[] { new Artefact( ArtefactType.ESpaz12 ) }, iFacingAngle, iActions, BotHealth.EPrivateSoldier, iID, BotHanded.ERightHanded );
case 1: return new Bot( new BotPattern( BotPatternBase.ESpecialForces, iKind ), Bot.BotType.ETypeFriend, iAnchor, null, BotJob.EWatchPlayer, new Artefact[] { new Artefact( ArtefactType.ESpaz12 ) }, iFacingAngle, iActions, BotHealth.EPrivateSoldier, iID, BotHanded.ERightHanded );
}
break;
}
}