示例#1
0
        public virtual void PerformAction(CommandSystem commandSystem)
        {
            var wander        = new Wander();
            var moveAndAttack = new MoveAndAttack();

            Map         world  = game.MapManager.Map;
            Player      player = game.Player;
            FieldOfView fov    = new FieldOfView(world);

            wander.Act(this, commandSystem, game);
            // fov.ComputeFov(this.X, this.Y, this.Awareness, true);
            // if (fov.IsInFov(player.X, player.Y)) {
            //     moveAndAttack.Act(this, commandSystem, game);
            // } else {
            //     wander.Act(this, commandSystem, game);
            // }
        }