| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using UnityEngine;
- using System.Collections.Generic;
- public enum ActionType
- {
- None,
- Attack,
- UseSkill,
- Heal,
- Defend,
- ThrowArrow
- }
- [System.Serializable]
- public class CharacterInGroup
- {
- public string characterName;
- public int gridX, gridY;
- public CharacterType characterType;
- public PersonalityType personality;
- public RaceType race;
- public int age;
- public CharacterRelations relations = new();
- public FirstPersonWeapon assignedWeapon;
- // Ajout des stats de base
- public int strength;
- public int constitution;
- public int intelligence;
- public int agility;
- public bool isMale;
- // Combat et progression
- public int currentHP;
- public int maxHP;
- public int level;
- public int experience;
- // Last Action
- public ActionType lastAction = ActionType.None;
- public string lastSkillName = "";
- // Magie
- public int currentMana;
- public int maxMana;
- // Fatigue / Endurance
- public int currentFatigue;
- public int maxFatigue;
-
- public Inventory inventory = new Inventory();
- public List<LearnedSkill> learnedSkills = new();
- public enum CharacterType { Warrior, Priest, Archer, Thief, Assassin, Monk, Beast }
- public enum PersonalityType { Loyal, Ambitious, Peaceful, Impulsive, Opportunist }
- public enum RaceType { Human, Elf, Orc, Dwarf, Undead }
- }
|