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 2.8 kB

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