Esempio n. 1
0
 public CastedSpellEventArgs(DndGame game, CastedSpell castedSpell) : base(game)
 {
     CastedSpell = castedSpell;
 }
 public DndGameEventArgs(DndGame game)
 {
     Game = game;
 }
Esempio n. 3
0
 public void CheckAlarmsPlayerEndsTurn(Character character, DndGame game)
 {
     TriggerAlarms(Time, game.InitiativeIndex, character, TurnSpecifier.EndOfTurn);
 }
Esempio n. 4
0
        private static double GetPercentCompleteBasedOnSpellDuration(CastedSpell castedSpell, DndGame dndGame, TimeSpan spellDuration)
        {
            TimeSpan timeActive = dndGame.Clock.Time - castedSpell.CastingTime;

            return(100.0 * timeActive.TotalSeconds / spellDuration.TotalSeconds);
        }
Esempio n. 5
0
 public void CheckAlarmsPlayerStartsTurn(Character character, DndGame game)
 {
     TriggerAlarms(Time, game.InitiativeIndex, character, RoundSpecifier.StartOfTurn);
 }