Beispiel #1
0
        private string buildSwf(int playerNumb)
        {
            if (World.InSpecialTile(PosX, PosY))
            {
                World.SpecialTile tile = World.GetSpecialTile(PosX, PosY);
                if (tile.Code != null)
                {
                    if (tile.Code.StartsWith("2PLAYER-"))
                    {
                        string swf = tile.Code.Split('-')[1].ToLower();
                        if (!swf.Contains(".swf"))
                        {
                            swf += ".swf";
                        }
                        if (swf.Contains("?"))
                        {
                            swf += "&";
                        }
                        else
                        {
                            swf += "?";
                        }

                        swf += "playernum=" + playerNumb.ToString();
                        return(swf);
                    }
                }
            }
            return("test");
        }
Beispiel #2
0
 public static bool CanDropItems(int x, int y)
 {
     if (World.InSpecialTile(x, y))
     {
         World.SpecialTile tile = World.GetSpecialTile(x, y);
         if (tile.Code != null)
         {
             return(false);
         }
     }
     return(true);
 }