예제 #1
0
 /// <summary>
 /// Does their job's action on a Tile.
 /// </summary>
 /// <param name="tile">The Tile you want this Cowboy to act on.</param>
 /// <param name="drunkDirection">The direction the bottle will cause drunk cowboys to be in, can be 'North', 'East', 'South', or 'West'.</param>
 /// <returns>True if the act worked, false otherwise.</returns>
 public bool Act(Saloon.Tile tile, string drunkDirection = "")
 {
     return(this.RunOnServer <bool>("act", new Dictionary <string, object> {
         { "tile", tile },
         { "drunkDirection", drunkDirection }
     }));
 }
예제 #2
0
 /// <summary>
 /// Moves this Cowboy from its current Tile to an adjacent Tile.
 /// </summary>
 /// <param name="tile">The Tile you want to move this Cowboy to.</param>
 /// <returns>True if the move worked, false otherwise.</returns>
 public bool Move(Saloon.Tile tile)
 {
     return(this.RunOnServer <bool>("move", new Dictionary <string, object> {
         { "tile", tile }
     }));
 }