C# Class ctac.HistoryMediator

Inheritance: strange.extensions.mediation.impl.Mediator
Datei anzeigen Open project: dshook/centauri-tac

Private Properties

Property Type Description
CopyCard CardModel
CopyPiece PieceModel
GetCurrent HistoryItem
addGenericHistory void
onPieceAttacked void
onPieceBuff void
onPieceHealthChanged void
onQpc void
onSpawnPiece void
onSpellPlayed void
onTurnEnd void
pushHistory IEnumerator

Public Methods

Method Description
OnRegister ( ) : void
onArmor ( PieceArmorChangeModel m ) : void
onAttrChange ( PieceAttributeChangeModel m ) : void
onCharmed ( CharmPieceModel m ) : void
onCode ( AttachCodeModel m, SocketKey k ) : void
onDestroyed ( PieceDestroyedModel m, SocketKey k ) : void
onRemove ( ) : void
onStatusChange ( PieceStatusChangeModel m ) : void
onTransformed ( TransformPieceModel m ) : void
onUnsummon ( UnsummonPieceModel m ) : void

Private Methods

Method Description
CopyCard ( CardModel src ) : CardModel
CopyPiece ( PieceModel src ) : PieceModel
GetCurrent ( int activatingPieceId, HistoryItemType type, int player ) : HistoryItem

Get or create the current history item for the activating piece Id which the history items are grouped by If one doesn't exist, create it with the player and type passed

addGenericHistory ( int pieceId, int activatingPieceId ) : void
onPieceAttacked ( AttackPieceModel atk ) : void
onPieceBuff ( PieceBuffModel pieceBuff ) : void
onPieceHealthChanged ( PieceHealthChangeModel phcm ) : void
onQpc ( int t ) : void
onSpawnPiece ( PieceSpawnedModel pieceSpawned ) : void
onSpellPlayed ( SpellPlayedModel spellPlayed ) : void
onTurnEnd ( GameTurnModel turn ) : void
pushHistory ( List items ) : IEnumerator

Method Details

OnRegister() public method

public OnRegister ( ) : void
return void

onArmor() public method

public onArmor ( PieceArmorChangeModel m ) : void
m PieceArmorChangeModel
return void

onAttrChange() public method

public onAttrChange ( PieceAttributeChangeModel m ) : void
m PieceAttributeChangeModel
return void

onCharmed() public method

public onCharmed ( CharmPieceModel m ) : void
m CharmPieceModel
return void

onCode() public method

public onCode ( AttachCodeModel m, SocketKey k ) : void
m AttachCodeModel
k SocketKey
return void

onDestroyed() public method

public onDestroyed ( PieceDestroyedModel m, SocketKey k ) : void
m PieceDestroyedModel
k SocketKey
return void

onRemove() public method

public onRemove ( ) : void
return void

onStatusChange() public method

public onStatusChange ( PieceStatusChangeModel m ) : void
m PieceStatusChangeModel
return void

onTransformed() public method

public onTransformed ( TransformPieceModel m ) : void
m TransformPieceModel
return void

onUnsummon() public method

public onUnsummon ( UnsummonPieceModel m ) : void
m UnsummonPieceModel
return void