Class SearchCell
Assembly: cs.temp.dll.dll
Syntax
Properties
Entities
Gets the entities that are positioned within the search cell.
Declaration
public IReadOnlyList<IEntity> Entities { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<IEntity> |
|
globalEvent
Declaration
protected IGlobalEventPublisher globalEvent { get; }
Property Value
Type |
Description |
IGlobalEventPublisher |
|
gridSearch
Declaration
protected IGridSearchHandler gridSearch { get; }
Property Value
IsRendering
Declaration
public bool IsRendering { get; }
Property Value
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
Neighbors
Gets the set of neighboring cells.
Declaration
public IReadOnlyList<SearchCell> Neighbors { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<SearchCell> |
|
Obstacles
Declaration
public IReadOnlyList<ISearchObstacle> Obstacles { get; }
Property Value
Position
Gets the lower-left corner position of the search cell.
Declaration
public Int2D Position { get; }
Property Value
UnitTargetPositionMarkers
Gets the tracked UnitTargetPositionMarker instances inside the search cell.
Declaration
public IReadOnlyList<IMovementTargetPositionMarker> UnitTargetPositionMarkers { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<IMovementTargetPositionMarker> |
|
Methods
Add(IEntity)
Declaration
public void Add(IEntity newEntity)
Parameters
Type |
Name |
Description |
IEntity |
newEntity |
|
Add(IMovementTargetPositionMarker)
Adds a new UnitTargetPositionMarker instance to the tracked lists of unit target position markers inside this search cell.
Declaration
public void Add(IMovementTargetPositionMarker newMarker)
Parameters
Type |
Name |
Description |
IMovementTargetPositionMarker |
newMarker |
The new UnitTargetPositionMarker instance to add.
|
AddObstacle(ISearchObstacle)
Declaration
public void AddObstacle(ISearchObstacle newObstacle)
Parameters
Init(IGameManager, Int2D, SearchCell[])
Declaration
public void Init(IGameManager gameMgr, Int2D position, SearchCell[] neighbors)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
Int2D |
position |
|
SearchCell[] |
neighbors |
|
IsIn(Vector3)
Check if a Vector3 position is inside the search cell's boundaries.
Declaration
public bool IsIn(Vector3 testPosition)
Parameters
Type |
Name |
Description |
Vector3 |
testPosition |
Vector3 position to test.
|
Returns
Type |
Description |
Boolean |
True if the input position is inside the search cell's boundaries, otherwise false.
|
OnUpdateRendering(Boolean)
Declaration
public void OnUpdateRendering(bool isRenderering)
Parameters
Type |
Name |
Description |
Boolean |
isRenderering |
|
RaiseSearchCellUpdated()
Declaration
public void RaiseSearchCellUpdated()
Remove(IEntity)
Declaration
public void Remove(IEntity entity)
Parameters
Type |
Name |
Description |
IEntity |
entity |
|
Remove(IMovementTargetPositionMarker)
Removes a UnitTargetPositionMarker instance from the tracked list of markers inside this search cell.
Declaration
public void Remove(IMovementTargetPositionMarker marker)
Parameters
Type |
Name |
Description |
IMovementTargetPositionMarker |
marker |
The UnitTargetPositionMarker instance to remove.
|
Events
SearchCellUpdated
Declaration
public event CustomEventHandler<SearchCell, EventArgs> SearchCellUpdated
Event Type
Type |
Description |
CustomEventHandler<SearchCell, System.EventArgs> |
|