public EnemCruiser(int hp, int ener, int enmove, bool isally) { W1 = new Weapon(); W1.Name = "Laser"; W1.Damage = 100; W1.Accuracy = 70; W1.Ener = 50; W2 = new FinSalWeapon(); W2.Name = "Missile"; W2.NumofSalvo = 3; W2.NumofShells = 4; W2.Damage = 100; W2.Accuracy = 90; W2.Ener = 50; HP = hp; Energy = ener; EnMove = enmove; uri = new Uri(UriEnemCruiser); bitmap = new BitmapImage(uri); IsTarget = false; if (isally) { IsAlly = true; IsEnemy = false; } else { IsEnemy = true; IsAlly = false; } }
public PlayerShip() { IsActive = false; DeathGun = null; FSW1 = FSW2 = FSW3 = null; SW1 = SW2 = SW3 = null; FW1 = FW2 = FW3 = null; W1 = W2 = W3 = null; Energy = StartEnergy; EnMove = StartEnMove; HP = StartHP; IsAlly = true; IsEnemy = false; var uri = new Uri(UriRider); var bitmap = new BitmapImage(uri); image = new Image(); image.Source = bitmap; image.Width = wid; }