diff --git a/SessionCompanion/SessionCompanion.Database/Tables/GameAction.cs b/SessionCompanion/SessionCompanion.Database/Tables/GameAction.cs new file mode 100644 index 0000000..a523153 --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/GameAction.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class GameAction : BaseEntity + { + // + /// Nazwa akcji + /// + public string Name { get; set; } + + /// + /// Opis akcji + /// + public string Description { get; set; } + + public int AttackBonus { get; set; } + + public int? DamageDice { get; set; } + public int? DamageDiceAmount { get; set; } + + public int? DamageBonus { get; set; } + + public virtual ICollection MonsterActions { get; set; } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Tables/LegendaryAction.cs b/SessionCompanion/SessionCompanion.Database/Tables/LegendaryAction.cs new file mode 100644 index 0000000..32c16a0 --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/LegendaryAction.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class LegendaryAction : BaseEntity + { + // + /// Nazwa legendarnej akcji + /// + public string Name { get; set; } + + /// + /// Opis akcji + /// + public string Description { get; set; } + + public virtual ICollection MonsterLegendaryActions { get; set; } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Tables/Monster.cs b/SessionCompanion/SessionCompanion.Database/Tables/Monster.cs new file mode 100644 index 0000000..6c641ab --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/Monster.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class Monster : BaseEntity + { + /// + /// Nazwa potwora + /// + public string Name { get; set; } + + /// + /// Rozmiar potwora + /// + public string Size { get; set; } + + /// + /// Rodzaj potwora + /// + public string Type { get; set; } + + /// + /// Podtyp potwora + /// + public string Subtype { get; set; } + + /// + /// Charakter potwora + /// + public string Alignment { get; set; } + + /// + /// Poziom pancerza potwora + /// + public int ArmorClass { get; set; } + + /// + /// Iloś punktów zycia potwora + /// + public int HitPoints { get; set; } + + /// + /// Ilość kości określajacych punkty życia potwora + /// + public int HitDiceAmount { get; set; } + + /// + /// Kość którą rzucamy aby określić punkty życia potwora + /// + public int HitDiceType { get; set; } + + /// + /// Szybkość chodzenia potwora + /// + public string WalkSpeed { get; set; } + + /// + /// Szybkość pływania potwora + /// + public string SwimSpeed { get; set; } + + /// + /// Szybkość latania potwora + /// + public string FlySpeed { get; set; } + + /// + /// Punkty zręczności potwora + /// + public int Dexterity { get; set; } + public int? DexteritySave { get; set; } + + /// + /// Punkty siły potwora + /// + public int Strength { get; set; } + public int? StrengthSave { get; set; } + + /// + /// Punkty kondycji potwora + /// + public int Constitution { get; set; } + public int? ConstitutionSave { get; set; } + + /// + /// Punkty inteligencji potwora + /// + public int Intelligence { get; set; } + public int? IntelligenceSave { get; set; } + + /// + /// Punkty mądrości potwora + /// + public int Wisdom { get; set; } + public int? WisdomSave { get; set; } + + /// + /// Punkty charyzmy potwora + /// + public int Charisma { get; set; } + public int? CharismaSave { get; set; } + + /// + /// Poziom trudności potwora + /// + public int ChallengeRating { get; set; } + + /// + /// Punkty doświadczenia za zabicie potwora + /// + public int ExperiencePoints { get; set; } + + /// + /// Połączenie z tabelą MonsterActions + /// + public virtual ICollection MonsterAction { get; set; } + + /// + /// Na jakie stany odporny jest potwor + /// + public string MonsterConditionImmunities { get; set; } + + /// + /// Na jakie obrazenia odporny jest potwor + /// + public string MonsterDamageImmunities { get; set; } + + /// + /// Na jakie obrazenia potwor ma zmniejszoną słabosc + /// + public string MonsterDamageResistances { get; set; } + + /// + /// Na co potwor jest wrazliwy + /// + public string MonsterDamageVulnerabilities { get; set; } + + /// + /// Jezyki jakimi wlada potwor + /// + public string MonsterLanguages { get; set; } + + /// + /// Połączenie z tabelą MonsterLegendaryActions + /// + public virtual ICollection MonsterLegendaryAction { get; set; } + + /// + /// Połączenie z tabelą MonsterSenses + /// + public string MonsterSenses { get; set; } + + /// + /// Połączenie z tabelą MonsterSpecialAbilities + /// + public virtual ICollection MonsterSpecialAbility { get; set; } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Tables/MonsterAction.cs b/SessionCompanion/SessionCompanion.Database/Tables/MonsterAction.cs new file mode 100644 index 0000000..d3b9b88 --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/MonsterAction.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class MonsterAction : BaseEntity + { + /// + /// Id potwora + /// + public int MonsterId { get; set; } + + /// + /// Połączenie z tabelą Monsters + /// + public virtual Monster Monster { get; set; } + + public int GameActionId { get; set; } + public virtual GameAction GameAction { get; set; } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Tables/MonsterLegendaryAction.cs b/SessionCompanion/SessionCompanion.Database/Tables/MonsterLegendaryAction.cs new file mode 100644 index 0000000..7d8c47e --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/MonsterLegendaryAction.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class MonsterLegendaryAction : BaseEntity + { + /// + /// Id potwora + /// + public int MonsterId { get; set; } + public int LegendaryActionId { get; set; } + + /// + /// Połączenie z tabelą Monster + /// + public virtual Monster Monster { get; set; } + + public virtual LegendaryAction LegendaryActions { get; set; } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Tables/MonsterSpecialAbility.cs b/SessionCompanion/SessionCompanion.Database/Tables/MonsterSpecialAbility.cs new file mode 100644 index 0000000..d2e1492 --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/MonsterSpecialAbility.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class MonsterSpecialAbility : BaseEntity + { + public int SpecialAbilityId { get; set; } + + + public int? DamageDice { get; set; } + + public int? DamageDiceAmount { get; set; } + /// + /// Id potwora + /// + public int? MonsterId { get; set; } + + public virtual SpecialAbility SpecialAbility { get; set; } + /// + /// Połączenie z tabelą Monster + /// + public virtual Monster Monster { get; set; } + } +} diff --git a/SessionCompanion/SessionCompanion.Database/Tables/SpecialAbility.cs b/SessionCompanion/SessionCompanion.Database/Tables/SpecialAbility.cs new file mode 100644 index 0000000..edb0380 --- /dev/null +++ b/SessionCompanion/SessionCompanion.Database/Tables/SpecialAbility.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SessionCompanion.Database.Tables +{ + public class SpecialAbility : BaseEntity + { + // + /// Nazwa umiejętności + /// + public string Name { get; set; } + + /// + /// Opis umiejętności + /// + public string Description { get; set; } + + public int? DamageDice { get; set; } + + public int? DamageDiceAmount { get; set; } + + public virtual ICollection MonsterSpecialAbilities { get; set; } + } +}