|
|
@@ -1,11 +1,17 @@
|
|
|
-using System.ComponentModel.DataAnnotations;
|
|
|
+using System.Collections;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.ComponentModel.DataAnnotations;
|
|
|
+using Domain.BackOffice;
|
|
|
+using Warhammer.Models.Weapons;
|
|
|
+using Warhammer.Service;
|
|
|
|
|
|
namespace Warhammer.Models
|
|
|
{
|
|
|
- public class Player
|
|
|
+ public class Player : BaseEntity
|
|
|
{
|
|
|
- [Key] public string Name { get; set; }
|
|
|
-
|
|
|
+ public string Name { get; set; }
|
|
|
+ public string CharacterName { get; set; }
|
|
|
+ public string Background { get; set; }
|
|
|
public int Experience { get; set; }
|
|
|
public int CC { get; set; }
|
|
|
public int CT { get; set; }
|
|
|
@@ -17,5 +23,22 @@ namespace Warhammer.Models
|
|
|
public int FM { get; set; }
|
|
|
public int SOC { get; set; }
|
|
|
public int MF { get; set; }
|
|
|
+
|
|
|
+ public int Initiative()
|
|
|
+ {
|
|
|
+ return DiceService.RollDices(1, 10) + DiceService.Bonus(AG);
|
|
|
+ }
|
|
|
+ public bool TestCC() { return DiceService.RollDices(100, 1) <= CC; }
|
|
|
+ public bool TestCT() { return DiceService.RollDices(100, 1) <= CT; }
|
|
|
+ public bool TestF() { return DiceService.RollDices(100, 1) <= F; }
|
|
|
+ public bool TestE() { return DiceService.RollDices(100, 1) <= E; }
|
|
|
+ public bool TestAG() { return DiceService.RollDices(100, 1) <= AG; }
|
|
|
+ public bool TestINT() { return DiceService.RollDices(100, 1) <= INT; }
|
|
|
+ public bool TestPER() { return DiceService.RollDices(100, 1) <= PER; }
|
|
|
+ public bool TestFM() { return DiceService.RollDices(100, 1) <= FM; }
|
|
|
+ public bool TestSOC() { return DiceService.RollDices(100, 1) <= SOC; }
|
|
|
+ public bool TestMF() { return DiceService.RollDices(100, 1) <= MF; }
|
|
|
+
|
|
|
+ public IList Weapons { get; set; }
|
|
|
}
|
|
|
}
|