Пример #1
0
 public TankContrSinTur(GameObjInfo objInfo,
                        Sprite[] collideSprites,
                        Vector2 initialPos, float initialRota,
                        float maxForwardSpeed, float maxBackwardSpeed, float maxTurnAngleSpeed,
                        float maxTurretAngleSpeed, float maxRaderAngleSpeed,
                        float fireCDTime)
     : base(objInfo, initialPos, Vector2.Zero, initialRota, 0f, collideSprites)
 {
     this.collideSprites = collideSprites;
     limit           = new TankLimitSinTur(maxForwardSpeed, maxBackwardSpeed, maxTurnAngleSpeed, maxTurretAngleSpeed, maxRaderAngleSpeed);
     this.fireCDTime = fireCDTime;
 }
Пример #2
0
 public TankContrSinTur ( GameObjInfo objInfo,
     Sprite[] collideSprites,
     Vector2 initialPos, float initialRota,
     float maxForwardSpeed, float maxBackwardSpeed, float maxTurnAngleSpeed,
     float maxTurretAngleSpeed, float maxRaderAngleSpeed,
     float fireCDTime )
     : base( objInfo, initialPos, Vector2.Zero, initialRota, 0f, collideSprites )
 {
     this.collideSprites = collideSprites;
     limit = new TankLimitSinTur( maxForwardSpeed, maxBackwardSpeed, maxTurnAngleSpeed, maxTurretAngleSpeed, maxRaderAngleSpeed );
     this.fireCDTime = fireCDTime;
 }