GDG Factions Manager
Framework for Unity to easily manage factions in a game.
Public Member Functions | Protected Attributes | List of all members
RestoreFactionCommand Class Reference
Inheritance diagram for RestoreFactionCommand:
FactionCommand

Public Member Functions

 RestoreFactionCommand (FactionEntity oSource, FactionEntity oTarget, int prevFaction, double execTime)
 Adjust how oSource's faction feels about oTarget by the amount specified in nAdjustment. More...
 
 RestoreFactionCommand (string sSource, string sTarget, int prevFaction, double execTime)
 
void Execute ()
 This is where the logic of the command is performed. More...
 
bool ShouldExecute (double time)
 Signals whether this command can execute or note. More...
 
override bool Equals (object obj)
 
int GetPrevFaction ()
 
void SetPrevFaction (int newPrevFaction)
 
override int GetHashCode ()
 

Protected Attributes

FactionEntity oSource
 
string sTargetID
 

Constructor & Destructor Documentation

RestoreFactionCommand.RestoreFactionCommand ( FactionEntity  oSource,
FactionEntity  oTarget,
int  prevFaction,
double  execTime 
)

Adjust how oSource's faction feels about oTarget by the amount specified in nAdjustment.

Parameters
oSourceThe creature whose opinion will change.
oTargetThe object whose reputation will be altered.
prevFactionPrevious faction.
execTimeExec time.

Member Function Documentation

void RestoreFactionCommand.Execute ( )

This is where the logic of the command is performed.

Implements FactionCommand.

bool RestoreFactionCommand.ShouldExecute ( double  time)

Signals whether this command can execute or note.

Returns
Should this command execute?
Parameters
timeCurrent time.

Implements FactionCommand.


The documentation for this class was generated from the following file: