home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -screenplay- / otherstuff / adoomppc_src / d_ticcmd.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  2KB  |  58 lines

  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.  
  22.  
  23. #ifndef __D_TICCMD__
  24. #define __D_TICCMD__
  25.  
  26. #include "doomtype.h"
  27.  
  28. #ifdef __GNUG__
  29. #pragma interface
  30. #endif
  31.  
  32. #pragma options align=mac68k
  33.  
  34. // The data sampled per tick (single player)
  35. // and transmitted to other peers (multiplayer).
  36. // Mainly movements/button commands per game tick,
  37. // plus a checksum for internal state consistency.
  38. typedef struct
  39. {
  40.     char    forwardmove;    // *2048 for move
  41.     char    sidemove;    // *2048 for move
  42.     short    angleturn;    // <<16 for angle delta
  43.     short    consistancy;    // checks for net game
  44.     byte    chatchar;
  45.     byte    buttons;
  46. } ticcmd_t;
  47.  
  48. #pragma options align=power
  49.  
  50.  
  51.  
  52. #endif
  53. //-----------------------------------------------------------------------------
  54. //
  55. // $Log:$
  56. //
  57. //-----------------------------------------------------------------------------
  58.