//////////////////////////////////////////////////////////////////////////////////////// // PUBLIC METHODS //////////////////////////////////////////////////////////////////////////////////////// /// <summary> /// This method returns either the existing Instance of ActorAI or creates a new one /// a reference to the GameEngine must be passed in. /// </summary> /// <param name="game">reference to GameEngine</param> /// <returns>Instance of CombatManager</returns> public static PlayerCombatResolver Instance() { if (_instance == null) { _instance = new PlayerCombatResolver(); } return(_instance); }
public NPC(string name) : base(name) { _actorAI = PlayerCombatResolver.Instance(); }