CharacterInGroup.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using UnityEngine;
  2. using System.Collections.Generic;
  3. public enum ActionType
  4. {
  5. None,
  6. Attack,
  7. UseSkill,
  8. Heal,
  9. Defend,
  10. ThrowArrow
  11. }
  12. [System.Serializable]
  13. public class CharacterInGroup
  14. {
  15. public string characterName;
  16. public int gridX, gridY;
  17. public CharacterType characterType;
  18. public PersonalityType personality;
  19. public RaceType race;
  20. public int age;
  21. public CharacterRelations relations = new();
  22. public FirstPersonWeapon assignedWeapon;
  23. // Ajout des stats de base
  24. public int strength;
  25. public int constitution;
  26. public int intelligence;
  27. public int agility;
  28. public bool isMale;
  29. // Combat et progression
  30. public int currentHP;
  31. public int maxHP;
  32. public int level;
  33. public int experience;
  34. // Last Action
  35. public ActionType lastAction = ActionType.None;
  36. public string lastSkillName = "";
  37. // Magie
  38. public int currentMana;
  39. public int maxMana;
  40. // Fatigue / Endurance
  41. public int currentFatigue;
  42. public int maxFatigue;
  43. public Inventory inventory = new Inventory();
  44. public List<LearnedSkill> learnedSkills = new();
  45. public enum CharacterType { Warrior, Priest, Archer, Thief, Assassin, Monk, Beast }
  46. public enum PersonalityType { Loyal, Ambitious, Peaceful, Impulsive, Opportunist }
  47. public enum RaceType { Human, Elf, Orc, Dwarf, Undead }
  48. }