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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 MaxBulletNum { get; }
  11. public List<ActiveSkillType> ListOfIActiveSkill { get; }
  12. public List<PassiveSkillType> ListOfIPassiveSkill { get; }
  13. public double Concealment { get; }
  14. public int AlertnessRadius { get; }
  15. public int ViewRange { get; }
  16. public int TimeOfOpeningOrLocking { get; }
  17. public int SpeedOfClimbingThroughWindows { get; }
  18. public int TimeOfOpenChest { get; }
  19. }
  20. public interface IGhost : IOccupation
  21. {
  22. }
  23. public interface IStudent : IOccupation
  24. {
  25. public int FixSpeed { get; }
  26. public int TreatSpeed { get; }
  27. }
  28. public class Assassin : IGhost
  29. {
  30. private const int moveSpeed = GameData.basicMoveSpeed * 473 / 380;
  31. public int MoveSpeed => moveSpeed;
  32. private const int maxHp = GameData.basicHp;
  33. public int MaxHp => maxHp;
  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 viewRange = (int)(GameData.basicViewRange * 1.3);
  44. public int ViewRange => viewRange;
  45. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking;
  46. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  47. public int speedOfClimbingThroughWindows = GameData.basicGhostSpeedOfClimbingThroughWindows;
  48. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  49. public int timeOfOpenChest = GameData.basicSpeedOfOpenChest;
  50. public int TimeOfOpenChest => timeOfOpenChest;
  51. }
  52. public class Teacher : IStudent
  53. {
  54. private const int moveSpeed = GameData.basicMoveSpeed * 3 / 4;
  55. public int MoveSpeed => moveSpeed;
  56. private const int maxHp = GameData.basicHp * 10;
  57. public int MaxHp => maxHp;
  58. public const int maxBulletNum = 0;
  59. public int MaxBulletNum => maxBulletNum;
  60. public BulletType InitBullet => BulletType.Null;
  61. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { });
  62. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  63. public const int fixSpeed = 0;
  64. public int FixSpeed => fixSpeed;
  65. public const int treatSpeed = GameData.basicTreatSpeed;
  66. public int TreatSpeed => treatSpeed;
  67. public const double concealment = GameData.basicConcealment * 0.5;
  68. public double Concealment => concealment;
  69. public const int alertnessRadius = GameData.basicAlertnessRadius / 2;
  70. public int AlertnessRadius => alertnessRadius;
  71. public int viewRange = GameData.basicViewRange * 9 / 10;
  72. public int ViewRange => viewRange;
  73. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking;
  74. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  75. public int speedOfClimbingThroughWindows = GameData.basicStudentSpeedOfClimbingThroughWindows * 9 / 10;
  76. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  77. public int timeOfOpenChest = GameData.basicSpeedOfOpenChest;
  78. public int TimeOfOpenChest => timeOfOpenChest;
  79. }
  80. public class Athlete : IStudent
  81. {
  82. private const int moveSpeed = GameData.basicMoveSpeed * 40 / 38;
  83. public int MoveSpeed => moveSpeed;
  84. private const int maxHp = GameData.basicHp * 32 / 30;
  85. public int MaxHp => maxHp;
  86. public const int maxBulletNum = 0;
  87. public int MaxBulletNum => maxBulletNum;
  88. public BulletType InitBullet => BulletType.Null;
  89. public List<ActiveSkillType> ListOfIActiveSkill => new(new ActiveSkillType[] { });
  90. public List<PassiveSkillType> ListOfIPassiveSkill => new(new PassiveSkillType[] { });
  91. public const int fixSpeed = GameData.basicFixSpeed * 6 / 10;
  92. public int FixSpeed => fixSpeed;
  93. public const int treatSpeed = GameData.basicTreatSpeed * 8 / 10;
  94. public int TreatSpeed => treatSpeed;
  95. public const double concealment = GameData.basicConcealment * 0.9;
  96. public double Concealment => concealment;
  97. public const int alertnessRadius = (int)(GameData.basicAlertnessRadius * 0.9);
  98. public int AlertnessRadius => alertnessRadius;
  99. public int viewRange = (int)(GameData.basicViewRange * 1.1);
  100. public int ViewRange => viewRange;
  101. public int timeOfOpeningOrLocking = GameData.basicSpeedOfOpeningOrLocking * 12 / 10;
  102. public int TimeOfOpeningOrLocking => timeOfOpeningOrLocking;
  103. public int speedOfClimbingThroughWindows = GameData.basicStudentSpeedOfClimbingThroughWindows * 12 / 10;
  104. public int SpeedOfClimbingThroughWindows => speedOfClimbingThroughWindows;
  105. public int timeOfOpenChest = GameData.basicSpeedOfOpenChest;
  106. public int TimeOfOpenChest => timeOfOpenChest;
  107. }
  108. }