//Unit constructor public AllianceCaptain(int InitialRowPosition, int InitialColPosition, AllianceTypeUnits unitType) { this.UnitType = unitType; this.UnitRace = UnitRaceType.alliance; this.AttackLevel = InitialAttackLevel; this.HealthLevel = InitialHealthLevel; this.CounterAttackLevel = InitialAttackLevel / 2; this.RowPosition = InitialRowPosition; this.ColPosition = InitialColPosition; }
//Unit constructor public AllianceKing(int InitialRowPosition, int InitialColPosition, AllianceTypeUnits unitType) { this.UnitType = unitType; this.UnitRace = UnitRaceType.alliance; this.AttackLevel = InitialAttackLevel; this.HealthLevel = InitialHealthLevel; this.CounterAttackLevel = InitialAttackLevel / 2; this.RowPosition = InitialRowPosition; this.ColPosition = InitialColPosition; this.SmallImage = new Image(); this.BigImage = new Image(); var path = System.IO.Path.GetFullPath(@"..\..\Resources\Alliance\Frames\king_small.png"); this.SmallImage.Source = new BitmapImage(new Uri(path, UriKind.Absolute)); path = System.IO.Path.GetFullPath(@"..\..\Resources\Alliance\Frames\king_big.png"); this.BigImage.Source = new BitmapImage(new Uri(path, UriKind.Absolute)); }