Defines a location within a grid.
More...
List of all members.
Detailed Description
Defines a location within a grid.
Constructor & Destructor Documentation
Romulus.CellIndex.CellIndex |
( |
int |
x, |
|
|
int |
y | |
|
) |
| | |
Creates a new CellIndex.
- Parameters:
-
| x | The X coordinate. |
| y | The Y coordinate. |
Member Function Documentation
Point Romulus.CellIndex.AsPoint |
( |
|
) |
|
Convert a CellIndex to a Point.
- Returns:
- A new Point object.
bool Romulus.CellIndex.Equals |
( |
CellIndex |
p |
) |
|
Compares this CellIndex to another CellIndex.
- Parameters:
-
- Returns:
- A boolean indicating equality.
override bool Romulus.CellIndex.Equals |
( |
object |
obj |
) |
|
Compares two objects for equality.
- Parameters:
-
| obj | The object to compare. |
- Returns:
- A boolean indicating equality.
static CellIndex Romulus.CellIndex.FromPoint |
( |
Point |
value |
) |
[static] |
Converts a point to a CellIndex.
- Parameters:
-
| value | The point to convert. |
- Returns:
- A new CellIndex object.
override int Romulus.CellIndex.GetHashCode |
( |
|
) |
|
Gets a hashcode for this object.
- Returns:
- A number.
static Romulus.CellIndex.operator CellIndex |
( |
Point |
p |
) |
[explicit, static] |
Defines an explicit conversion from Point to CellLocation.
- Parameters:
-
- Returns:
- The converted value.
static Romulus.CellIndex.operator Point |
( |
CellIndex |
c |
) |
[explicit, static] |
Defines an explicit conversion from CellLocation to Point.
- Parameters:
-
- Returns:
- The converted value.
Defines the != operator between two CellIndex objects.
- Parameters:
-
- Returns:
- A boolean indicating inequality.
Defines the == operator between two CellIndex objects.
- Parameters:
-
- Returns:
- A boolean indicating equality.
Member Data Documentation
Property Documentation
int Romulus.CellIndex.X [get, set] |
int Romulus.CellIndex.Y [get, set] |
The documentation for this struct was generated from the following file:
- D:/VS/Romulus/RomulusPublic/CellLocation.cs