Skip to content

Commit

Permalink
Added common ticcmd struct
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 6, 2004
1 parent 6711154 commit 72335d7
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions doomsday/Include/Common/p_ticcmd.h
@@ -0,0 +1,48 @@
/* DE1: $Id$
* Copyright (C) 2004 Jaakko Keränen <jaakko.keranen@iki.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not: http://www.opensource.org/
*/

/*
* p_ticcmd.h: Ticcmds
*/

#ifndef __COMMON_TICCMD_H__
#define __COMMON_TICCMD_H__

typedef struct ticcmd_s {
char forwardMove; // *2048 for move
char sideMove; // *2048 for move
short angle; // <<16 for angle delta
short pitch; // view pitch
char fly; // Fly up/down; fall down
byte arti;
// Actions:
char attack;
char use;
char jump;
short changeWeapon; // Absolute number, next/prev
char pause;
char suicide;
} ticcmd_t;

// Special flyspeed for falling down.
#define TICCMD_FALL_DOWN DDMINCHAR

// Special weapon numbers for the changeWeapon field.
#define TICCMD_NEXT_WEAPON DDMINSHORT
#define TICCMD_PREV_WEAPON (DDMINSHORT + 1)

#endif

0 comments on commit 72335d7

Please sign in to comment.