You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IOccupation.cs 3.5 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using Preparation.Utility;
  2. using System.Collections.Generic;
  3. namespace Preparation.Interface
  4. {
  5. public interface IOccupation
  6. {
  7. public int MoveSpeed { get; }
  8. public int MaxHp { get; }
  9. public BulletType InitBullet { get; }
  10. public int CD { get; }
  11. public int MaxBulletNum { get; }
  12. public List<ActiveSkillType> ListOfIActiveSkill { get; }
  13. public List<PassiveSkillType> ListOfIPassiveSkill { get; }
  14. public double Concealment { get; }
  15. public int AlertnessRadius { get; }
  16. public int TimeOfOpeningOrLocking { get; }
  17. public int TimeOfClimbingThroughWindows { get; }
  18. }
  19. public interface IGhost : IOccupation
  20. {
  21. }
  22. public interface IStudent : IOccupation
  23. {
  24. public int FixSpeed { get; }
  25. }
  26. public class Assassin : IGhost
  27. {
  28. private const int moveSpeed = GameData.basicMoveSpeed / 380 * 473;
  29. public int MoveSpeed => moveSpeed;
  30. private const int maxHp = GameData.basicHp;
  31. public int MaxHp => maxHp;
  32. public const int cd = 0;
  33. public int CD => cd;
  34. public const int maxBulletNum = 1;
  35. public int MaxBulletNum => maxBulletNum;
  36. public BulletType InitBullet => BulletType.CommonAttackOfGhost;
  37. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.BecomeInvisible, ActiveSkillType.UseKnife });
  38. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  39. public double concealment = GameData.basicConcealment * 1.5;
  40. public double Concealment => concealment;
  41. public int alertnessRadius = (int)(GameData.basicAlertnessRadius * 1.3);
  42. public int AlertnessRadius => alertnessRadius;
  43. public int timeOfOpeningOrLocking = GameData.basicTimeOfOpeningOrLocking;
  44. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  45. public int timeOfClimbingThroughWindows = GameData.basicTimeOfClimbingThroughWindows;
  46. public int TimeOfClimbingThroughWindows => timeOfClimbingThroughWindows;
  47. }
  48. public class Athlete : IStudent
  49. {
  50. private const int moveSpeed = GameData.basicMoveSpeed / 38 * 40;
  51. public int MoveSpeed => moveSpeed;
  52. private const int maxHp = GameData.basicHp / 30 * 32;
  53. public int MaxHp => maxHp;
  54. public const int cd = 0;
  55. public int CD => cd;
  56. public const int maxBulletNum = 0;
  57. public int MaxBulletNum => maxBulletNum;
  58. public BulletType InitBullet => BulletType.Null;
  59. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.CanBeginToCharge });
  60. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  61. public const int fixSpeed = GameData.basicFixSpeed / 10 * 6;
  62. public int FixSpeed => fixSpeed;
  63. public const double concealment = GameData.basicConcealment * 0.9;
  64. public double Concealment => concealment;
  65. public const int alertnessRadius = (int)(GameData.basicAlertnessRadius * 0.9);
  66. public int AlertnessRadius => alertnessRadius;
  67. public int timeOfOpeningOrLocking = GameData.basicTimeOfOpeningOrLocking * 12 / 10;
  68. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  69. public int timeOfClimbingThroughWindows = GameData.basicTimeOfClimbingThroughWindows / 87 * 80;
  70. public int TimeOfClimbingThroughWindows => timeOfClimbingThroughWindows;
  71. }
  72. }