dcontact.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //***************************************************************************
  2. //
  3. // dcontact.h - This file contains the Contact Class header definitions
  4. //
  5. // MechCommander 2
  6. //
  7. //---------------------------------------------------------------------------//
  8. // Copyright (C) Microsoft Corporation. All rights reserved. //
  9. //===========================================================================//
  10. #ifndef DCONTACT_H
  11. #define DCONTACT_H
  12. #define MAX_SENSORS 150 // # sensor systems allowed per mission
  13. #define MAX_ECMS 50
  14. #define MAX_CONTACTS_PER_SENSOR 200
  15. typedef enum _ContactStatus {
  16. CONTACT_NONE,
  17. CONTACT_SENSOR_QUALITY_1,
  18. CONTACT_SENSOR_QUALITY_2,
  19. CONTACT_SENSOR_QUALITY_3,
  20. CONTACT_SENSOR_QUALITY_4,
  21. CONTACT_VISUAL,
  22. NUM_CONTACT_STATUSES
  23. } ContactStatus;
  24. typedef enum {
  25. CONTACT_CRITERIA_NONE = 0,
  26. CONTACT_CRITERIA_ENEMY = 1,
  27. CONTACT_CRITERIA_VISUAL = 2,
  28. CONTACT_CRITERIA_GUARD_BREACH = 4,
  29. CONTACT_CRITERIA_NOT_CHALLENGED = 8,
  30. CONTACT_CRITERIA_SENSOR = 16,
  31. CONTACT_CRITERIA_VISUAL_OR_SENSOR = 32,
  32. CONTACT_CRITERIA_NOT_DISABLED = 64,
  33. CONTACT_CRITERIA_ARMED = 128,
  34. NUM_CONTACT_CRITERIA = 9
  35. } ContactCriteria;
  36. typedef enum {
  37. CONTACT_SORT_NONE,
  38. CONTACT_SORT_CV,
  39. CONTACT_SORT_DISTANCE,
  40. NUM_CONTACT_SORTS
  41. } ContactSortType;
  42. class ContactInfo;
  43. typedef ContactInfo* ContactInfoPtr;
  44. class SensorSystem;
  45. typedef SensorSystem* SensorSystemPtr;
  46. class TeamSensorSystem;
  47. typedef TeamSensorSystem* TeamSensorSystemPtr;
  48. class SensorSystemManager;
  49. typedef SensorSystemManager* SensorSystemManagerPtr;
  50. #endif
  51. //***************************************************************************