Example #1
0
    protected override string MonsterUpdate(GameTime gameTime)
    {
        if (SeenCount == 0)
        {
            return("");
        }

        if (NextMove != "")
        {
            ProcessMove(NextMove);
        }
        var myCell = GetCell();
        var path   = ParentMap.FindCellPath(myCell, game.Player.GetCell());

        if (!path.Any())
        {
            return("");
        }
        var cell = path.FirstOrDefault();

        return(DirectionFrom(myCell - cell) !);
    }