示例#1
0
文件: Throw.cs 项目: SparksJ2/Beehive
        private string CheckClearForThrown(Loc vector, MapTile activeTile)
        {
            Loc newLoc = Loc.AddPts(vector, activeTile.loc);

            if (!Refs.m.TileByLoc(newLoc).clear)
            {
                return("wall");
            }

            foreach (Cubi c in Refs.h.roster)
            {
                if (Loc.Same(newLoc, c.loc))
                {
                    return("cubi");
                }
            }

            foreach (Loc pent in Refs.m.pents)
            {
                if (Loc.Same(newLoc, pent))
                {
                    return("pent");
                }
            }

            return("clear");
        }