コード例 #1
0
        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;
        }
コード例 #2
0
 public EnemDestr(int hp, int ener)
 {
     Laser           = new Weapon();
     Laser.Name      = "Laser";
     Laser.Damage    = 100;
     Laser.Accuracy  = 70;
     Laser.Ener      = 50;
     Kin             = new FiniteWeapon();
     Kin.Name        = "Kinetic";
     Kin.Damage      = 250;
     Kin.Accuracy    = 50;
     Kin.Ener        = 30;
     Kin.NumofShells = 2;
     HP       = hp;
     Energy   = ener;
     uri      = new Uri(UriEnemDestr);
     bitmap   = new BitmapImage(uri);
     IsTarget = false;
     IsAlly   = false;
     IsEnemy  = true;
 }