Пример #1
0
 public Doom(PartyMember inflictor)
 {
     Inflictor           = inflictor;
     turns               = 0;
     TextureData         = ResourceManager.GetTextureData("particles/doom");
     shudderManager      = new ShudderManager(shudderCount, shudderTime);
     doomParticleManager = new ParticleManager(particleTime, TextureData);
     textParticleManager = null;
 }
Пример #2
0
 public Fear(PartyMember inflictor)
 {
     Inflictor            = inflictor;
     turns                = 0;
     TextureData          = ResourceManager.GetTextureData("particles/fear");
     shudderManager       = new ShudderManager(shudderCount, shudderTime);
     particleManager      = new ParticleManager(particleTime, TextureData);
     beforeActFinished    = false;
     endTurnFinishedEarly = false;
 }
Пример #3
0
 public static void UpdateShudder(PartyMember partyMember, Color tint, ShudderManager shudderManager, Delta delta)
 {
     shudderManager.Update(partyMember, delta);
     if (shudderManager.Finished)
     {
         partyMember.BattleEntity.Tint           = Color.White;
         partyMember.BattleEntity.PauseAnimation = false;
     }
     else
     {
         float shudderPercentage = shudderManager.ShudderTimer / shudderManager.ShudderTime;
         if (shudderManager.ShudderCounter % 2 != 0)
         {
             shudderPercentage = 1.0f - shudderPercentage;
         }
         partyMember.BattleEntity.Position       = shudderManager.PartyMemberStartPosition + new Vector2(shudderPercentage * shudderDistance, 0.0f);
         partyMember.BattleEntity.Tint           = tint;
         partyMember.BattleEntity.PauseAnimation = true;
     }
 }
Пример #4
0
 public Paralysis()
 {
     TextureData    = ResourceManager.GetTextureData("particles/paralysis");
     shudderManager = new ShudderManager(shudderCount, shudderTime);
     resetFieldsForUpdate(null);
 }