/// <summary> /// Initializes a new instance of the <see cref="AI.AIEntityContext"/> class. /// </summary> public AIEntityContext (BaseUnitEntity owner) { PlayerMgr = GameEngine.GetSingleton ().QueryPlugin<PlayerManager> (); MonsterMgr = GameEngine.GetSingleton ().QueryPlugin<MonsterManager> (); Session = GameEngine.GetSingleton ().QueryPlugin<LogicPlugin> (); // bind behaviour owner Owner = owner; }
/// <summary> /// Initializes a new instance of the <see cref="AIBaseState"/> class. /// </summary> /// <param name="nStateID">N state I.</param> /// <param name="entity">Entity.</param> public AIBaseState(int nStateID, IEntity entity) : base(nStateID) { Self = entity as BaseUnitEntity; }