C# Class GameMapExtensions, Augmented_Tactics

Exibir arquivo Open project: Kavignon/Augmented_Tactics

Public Methods

Method Description
AreInRange ( this gm, CharacterObservable, self ) : IEnumerable
CanMoveAway ( this gm, CharacterObservable, chObs ) : bool
ClearCharacterFromMap ( this gm, CharacterObservable, obs ) : void
FindPlayerCoordinates ( this gm, CharacterObservable, player ) : Cell,
GetAvailableMoveActions ( this gm, CharacterObservable, self ) : IEnumerable
GetNumberCharactersBlockingMovement ( this gm, CharacterObservable, character ) : int
InRange ( this gm, CharacterObservable, self, CharacterObservable, target ) : bool
IsInRange ( this gm, CharacterObservable, self, CharacterObservable, target ) : bool
IsTargetPositionAdjacentToSelf ( this gm, Cell, currentPos, Cell, targetCell ) : bool
PathToTarget ( this gm, Cell, origin, Cell, goal ) : List
PlayersInRange ( this gm, CharacterObservable, self ) : IEnumerable
RemoveTileHighlights ( this gm, int mapSize ) : void

Private Methods

Method Description
GetValidCardinalCells ( this gm, Cell, myPos ) : List

Method Details

AreInRange() public static method

public static AreInRange ( this gm, CharacterObservable, self ) : IEnumerable
gm this
self CharacterObservable,
return IEnumerable

CanMoveAway() public static method

public static CanMoveAway ( this gm, CharacterObservable, chObs ) : bool
gm this
chObs CharacterObservable,
return bool

ClearCharacterFromMap() public static method

public static ClearCharacterFromMap ( this gm, CharacterObservable, obs ) : void
gm this
obs CharacterObservable,
return void

FindPlayerCoordinates() public static method

public static FindPlayerCoordinates ( this gm, CharacterObservable, player ) : Cell,
gm this
player CharacterObservable,
return Cell,

GetAvailableMoveActions() public static method

public static GetAvailableMoveActions ( this gm, CharacterObservable, self ) : IEnumerable
gm this
self CharacterObservable,
return IEnumerable

GetNumberCharactersBlockingMovement() public static method

public static GetNumberCharactersBlockingMovement ( this gm, CharacterObservable, character ) : int
gm this
character CharacterObservable,
return int

InRange() public static method

public static InRange ( this gm, CharacterObservable, self, CharacterObservable, target ) : bool
gm this
self CharacterObservable,
target CharacterObservable,
return bool

IsInRange() public static method

public static IsInRange ( this gm, CharacterObservable, self, CharacterObservable, target ) : bool
gm this
self CharacterObservable,
target CharacterObservable,
return bool

IsTargetPositionAdjacentToSelf() public static method

public static IsTargetPositionAdjacentToSelf ( this gm, Cell, currentPos, Cell, targetCell ) : bool
gm this
currentPos Cell,
targetCell Cell,
return bool

PathToTarget() public static method

public static PathToTarget ( this gm, Cell, origin, Cell, goal ) : List
gm this
origin Cell,
goal Cell,
return List

PlayersInRange() public static method

public static PlayersInRange ( this gm, CharacterObservable, self ) : IEnumerable
gm this
self CharacterObservable,
return IEnumerable

RemoveTileHighlights() public static method

public static RemoveTileHighlights ( this gm, int mapSize ) : void
gm this
mapSize int
return void