Struct MovementResult
Represents the outcome of a movement attempt. Contains both success and survival information.
Inherited Members
Namespace: ExplorerGame.Core
Assembly: explorer-game.dll
Syntax
public struct MovementResult
Constructors
| Edit this page View SourceMovementResult(bool, bool, Tile?)
Initializes a new MovementResult with the specified values.
Declaration
public MovementResult(bool movedSuccessfully, bool isAgentAlive, Tile? discoveredTile)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | movedSuccessfully |
|
| bool | isAgentAlive |
|
| Tile? | discoveredTile | The tile discovered by the move, if any. |
Properties
| Edit this page View SourceDiscoveredTile
Gets or sets the tile discovered as a consequence of the movement, if any.
Declaration
public Tile? DiscoveredTile { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| Tile? |
IsAgentAlive
Indicates whether the agent is still alive after the move.
Declaration
public bool IsAgentAlive { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MovedSuccessfully
Indicates whether the move was valid and executed.
Declaration
public bool MovedSuccessfully { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| bool |