Ejemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////////////////
        //   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);
        }
Ejemplo n.º 2
0
 public NPC(string name) : base(name)
 {
     _actorAI = PlayerCombatResolver.Instance();
 }