コード例 #1
0
ファイル: CharacterElfDark.cs プロジェクト: zakaryus/cscd349
 public CharacterElfDark()
 {
     Name         = "Dark Elf";
     Description  = "An evil elf character.";
     MaxHitPoints = HitPoints = new HitPoint(100);
     Weapon       = null;
     Equipment    = null;
     Face         = new Image();
     Face.Source  = HelperImages.UriStringToImageSource("pack://application:,,,/Images/Faces/BadFaces/CharacterElfDarkFace.png");
 }
コード例 #2
0
 public CharacterNinjaMale()
 {
     Name         = "Male Ninja";
     Description  = "A sly, agile character.";
     MaxHitPoints = HitPoints = new HitPoint(100);
     Weapon       = null;
     Equipment    = null;
     Face         = new Image();
     Face.Source  = HelperImages.UriStringToImageSource("pack://application:,,,/Images/Faces/GoodFaces/CharacterNinjaMaleFace.png");
 }
コード例 #3
0
 public CharacterKnightFemale()
 {
     Name         = "Female Knight";
     Description  = "A strong, armored character.";
     MaxHitPoints = HitPoints = new HitPoint(100);
     Weapon       = null;
     Equipment    = null;
     Face         = new Image();
     Face.Source  = HelperImages.UriStringToImageSource("pack://application:,,,/Images/Faces/GoodFaces/CharacterKnightFemaleFace.png");
 }
コード例 #4
0
 public CharacterSoldierFemale()
 {
     Name         = "Female Soldier";
     Description  = "A battle-tested character.";
     MaxHitPoints = HitPoints = new HitPoint(100);
     Weapon       = null;
     Equipment    = null;
     Face         = new Image();
     Face.Source  = HelperImages.UriStringToImageSource("pack://application:,,,/Images/Faces/GoodFaces/CharacterSoldierFemaleFace.png");
 }
コード例 #5
0
 public CharacterMagicianFemale()
 {
     Name         = "Female Magician";
     Description  = "A mystical character.";
     MaxHitPoints = HitPoints = new HitPoint(100);
     Weapon       = null;
     Equipment    = null;
     Face         = new Image();
     Face.Source  = HelperImages.UriStringToImageSource("pack://application:,,,/Images/Faces/GoodFaces/CharacterMagicianFemaleFace.png");
 }
コード例 #6
0
 public void SetPbHitPoints(HitPoint hitpoints)
 {
     pbHitPoints.Value           = hitpoints.Value;
     lblHitPointFraction.Content = GetFormattedHitPointFraction();
 }