d_ticcmd.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Emacs style mode select -*- C++ -*-
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. // System specific interface stuff.
  19. //
  20. //-----------------------------------------------------------------------------
  21. #ifndef __D_TICCMD__
  22. #define __D_TICCMD__
  23. #include "doomtype.h"
  24. #ifdef __GNUG__
  25. #pragma interface
  26. #endif
  27. // The data sampled per tick (single player)
  28. // and transmitted to other peers (multiplayer).
  29. // Mainly movements/button commands per game tick,
  30. // plus a checksum for internal state consistency.
  31. typedef struct
  32. {
  33. char forwardmove; // *2048 for move
  34. char sidemove; // *2048 for move
  35. short angleturn; // <<16 for angle delta
  36. short consistancy; // checks for net game
  37. byte chatchar;
  38. byte buttons;
  39. } ticcmd_t;
  40. #endif
  41. //-----------------------------------------------------------------------------
  42. //
  43. // $Log:$
  44. //
  45. //-----------------------------------------------------------------------------