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.1 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. }
  18. public interface IGhost : IOccupation
  19. {
  20. }
  21. public interface IStudent : IOccupation
  22. {
  23. public int FixSpeed { get; }
  24. }
  25. public class Assassin : IGhost
  26. {
  27. private const int moveSpeed = GameData.basicMoveSpeed / 380 * 473;
  28. public int MoveSpeed => moveSpeed;
  29. private const int maxHp = GameData.basicHp;
  30. public int MaxHp => maxHp;
  31. public const int cd = 0;
  32. public int CD => cd;
  33. public const int maxBulletNum = 1;
  34. public int MaxBulletNum => maxBulletNum;
  35. public BulletType InitBullet => BulletType.CommonAttackOfGhost;
  36. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.BecomeInvisible, ActiveSkillType.UseKnife });
  37. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  38. public double concealment = GameData.basicConcealment * 1.5;
  39. public double Concealment => concealment;
  40. public int alertnessRadius = (int)(GameData.basicAlertnessRadius * 1.3);
  41. public int AlertnessRadius => alertnessRadius;
  42. public int timeOfOpeningOrLocking = GameData.basicTimeOfOpeningOrLocking;
  43. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  44. }
  45. public class Athlete : IStudent
  46. {
  47. private const int moveSpeed = GameData.basicMoveSpeed / 38 * 40;
  48. public int MoveSpeed => moveSpeed;
  49. private const int maxHp = GameData.basicHp / 30 * 32;
  50. public int MaxHp => maxHp;
  51. public const int cd = 0;
  52. public int CD => cd;
  53. public const int maxBulletNum = 0;
  54. public int MaxBulletNum => maxBulletNum;
  55. public BulletType InitBullet => BulletType.Null;
  56. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { ActiveSkillType.BeginToCharge });
  57. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  58. public const int fixSpeed = GameData.basicFixSpeed / 10 * 6;
  59. public int FixSpeed => fixSpeed;
  60. public const double concealment = GameData.basicConcealment * 0.9;
  61. public double Concealment => concealment;
  62. public const int alertnessRadius = (int)(GameData.basicAlertnessRadius * 0.9);
  63. public int AlertnessRadius => alertnessRadius;
  64. public int timeOfOpeningOrLocking = GameData.basicTimeOfOpeningOrLocking;
  65. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  66. }
  67. }