Word Game Builder 2.0.1f2
Reference Manual
|
Represents a letter. More...
Public Member Functions | |
Letter (string text, char charValue, int score) | |
Creates a new letter. More... | |
int | CompareTo (Letter other) |
Compares this letter to another one, by their human-readable string values and the current culture. More... | |
int | CompareTo (Letter other, System.Globalization.CultureInfo culture) |
Compares this letter to another one, by their human-readable string values and the specified culture. More... | |
override bool | Equals (object obj) |
Override for System.Object.Equals. More... | |
bool | Equals (Letter other) |
Tests value-based equality between two letters. More... | |
override int | GetHashCode () |
Override for System.Object.GetHashCode. More... | |
Static Public Member Functions | |
static bool | operator!= (Letter a, Letter b) |
Tests value-based non-equality between two letters. More... | |
static bool | operator== (Letter a, Letter b) |
Tests value-based equality between two letters. More... | |
Properties | |
char | character [get] |
Gets the character associated with the letter. More... | |
static Letter | empty [get] |
Returns an empty letter. More... | |
bool | hasValue [get] |
Does the letter have a value? More... | |
int | score [get] |
Gets the score associated with the letter. More... | |
string | text [get] |
Gets the text associated with the letter. More... | |
Represents a letter.
Note that this type is passed by value for performance reasons.
|
inline |
Creates a new letter.
text | A human-readable string representing the letter. |
charValue | A machine-character representing the letter. |
score | The point value of the letter. |
|
inline |
Compares this letter to another one, by their human-readable string values and the current culture.
Two letters are equal if they have the same text and character, or are both blank.
other | The other letter to compare with this one. |
other
.
|
inline |
Compares this letter to another one, by their human-readable string values and the specified culture.
Two letters are equal if they have the same text and character, or are both blank.
other | The other letter to compare with this one. |
culture | The culture to use for the comparison. |
other
.
|
inline |
Override for System.Object.Equals.
obj | The object to compare this letter with. |
true
if the letters are equal, otherwise false
.
|
inline |
Tests value-based equality between two letters.
Two letters are equal if they have the same text and character, or are both blank.
other | The other letter to compare with this one. |
true
if the letters are equal, otherwise false
.
A signed number indicating the relative values of this instance and other
.
|
inline |
Override for System.Object.GetHashCode.
Tests value-based non-equality between two letters.
Two letters are equal if they have the same text and character, or are both blank.
a | The first letter to compare. |
b | The second letter to compare. |
true
if the letters are NOT equal, otherwise false
.Tests value-based equality between two letters.
Two letters are equal if they have the same text and character, or are both blank.
a | The first letter to compare. |
b | The second letter to compare. |
true
if the letters are equal, otherwise false
.
|
get |
Gets the character associated with the letter.
The character is used for lookups into the langauge dictionary.
|
staticget |
Returns an empty letter.
|
get |
Does the letter have a value?
|
get |
Gets the score associated with the letter.
|
get |
Gets the text associated with the letter.
This is the actual display text for the letter.