Beispiel #1
0
 public AndromedaShield(Vector2 Position, TheAndromeda owner, float rotation = 0, int team = 0) : base(Position, rotation, team)
 {
     offset     = Position;
     entityID   = 40;
     maxHealth  = health = 100;
     this.owner = owner;
 }
Beispiel #2
0
        public AndromedaGunBase(TheAndromeda owner, Vector2 Position, int type, float rotation = 0, int team = 0) : base(Position, rotation, team)
        {
            this.owner = owner;
            entityID   = 38;
            health     = maxHealth = 150;
            Vector2 relativePosition = new Vector2(0, 30);

            switch (type)
            {
            case 0:
                turret = new AndromedaMachineGun(this, relativePosition, (float)Math.PI / 2);
                break;

            case 1:
                turret = new AndromedaStarGun(this, relativePosition, (float)Math.PI / 2);
                break;

            case 2:
                turret       = new AndromedaBombLauncher(this, relativePosition, (float)Math.PI / 2);
                heightAbove -= 20;
                break;

            case 3:
                turret       = new AndromedaDartLauncher(this, relativePosition, (float)Math.PI / 2);
                heightAbove -= 20;
                break;
            }
        }