public CastedSpellEventArgs(DndGame game, CastedSpell castedSpell) : base(game) { CastedSpell = castedSpell; }
public DndGameEventArgs(DndGame game) { Game = game; }
public void CheckAlarmsPlayerEndsTurn(Character character, DndGame game) { TriggerAlarms(Time, game.InitiativeIndex, character, TurnSpecifier.EndOfTurn); }
private static double GetPercentCompleteBasedOnSpellDuration(CastedSpell castedSpell, DndGame dndGame, TimeSpan spellDuration) { TimeSpan timeActive = dndGame.Clock.Time - castedSpell.CastingTime; return(100.0 * timeActive.TotalSeconds / spellDuration.TotalSeconds); }
public void CheckAlarmsPlayerStartsTurn(Character character, DndGame game) { TriggerAlarms(Time, game.InitiativeIndex, character, RoundSpecifier.StartOfTurn); }