Base abstract class for both playable and non-playable characters.
More...
|
| void | Move (Position newPos) |
| | Moves the character to a new position.
|
| |
|
| | Character (Position startPosition) |
| | Initializes a new instance of the Character class.
|
| |
|
|
char | Symbol [get] |
| | Gets the character symbol used to render this character on the map.
|
| |
|
Position | Pos [get] |
| | Gets or sets the current position of the character in the level.
|
| |
Base abstract class for both playable and non-playable characters.
The Character class provides the foundation for all character types in the game. Character-derived classes must implement the Symbol property to define how they are rendered on the map. Position tracking and movement are handled by the base class.
◆ Character()
| RpgGame.Character.Character.Character |
( |
Position |
startPosition | ) |
|
|
inlineprotected |
Initializes a new instance of the Character class.
- Parameters
-
| startPosition | The starting position for this character. |
◆ Move()
| void RpgGame.Character.Character.Move |
( |
Position |
newPos | ) |
|
|
inline |
Moves the character to a new position.
- Parameters
-
| newPos | The new position to move to. |
This method does not validate whether the target position is walkable. Movement validation should be performed by the caller.
The documentation for this class was generated from the following file: