Exemple #1
0
/**
 * Clear the snow from a tile and return it to its previous type.
 * @param t the tile to clear of snow
 * @pre GetClearGround(t) == CLEAR_SNOW
 */
        public static void ClearSnow(this TileIndex t)
        {
            Debug.Assert(GetClearGround(t) == ClearGround.CLEAR_SNOW);
            Map._m[t].m3 = BitMath.ClrBit(Map._m[t].m3, 4);
            SetClearDensity(t, 3);
        }
Exemple #2
0
/**
 * Remove the bridge over the given axis.
 * @param t the tile to remove the bridge from
 * @param a the axis of the bridge to remove
 */
        public static void ClearSingleBridgeMiddle(TileIndex t, Axis a)
        {
            Map._m[t].type = (byte)BitMath.ClrBit(Map._m[t].type, (byte)(2 + (byte)a));
        }