Class Tile
- Namespace
- Koffing.Tiles
- Assembly
- Koffing.dll
public class Tile : IComparable<Tile>, IEquatable<Tile>
- Inheritance
-
Tile
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
Tile()
Tile(Suit, int)
public Tile(Suit suit, int rank = 1)
Parameters
suit Suit
rank int
Fields
FaceUp
Field Value
- bool
Rank
Field Value
- int
Suit
Field Value
- Suit
Properties
RawRank
public int RawRank { get; }
Property Value
- int
Methods
CompareTo(Tile)
public int CompareTo(Tile that)
Parameters
that Tile
Returns
- int
Equals(Tile)
public bool Equals(Tile that)
Parameters
that Tile
Returns
- bool
Equals(object)
public override bool Equals(object that)
Parameters
that object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
IsValidTile(Suit, int)
public static bool IsValidTile(Suit suit, int rank)
Parameters
suit Suit
rank int
Returns
- bool
RawEquals(Tile)
public bool RawEquals(Tile that)
Parameters
that Tile
Returns
- bool
ToString()
public override string ToString()
Returns
- string