File: torp.h

package info (click to toggle)
conquest 8.1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,984 kB
  • ctags: 3,086
  • sloc: ansic: 39,393; sh: 8,540; yacc: 446; makefile: 296; lex: 146
file content (25 lines) | stat: -rw-r--r-- 637 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* 
 * Torpedo structure for Ships[].torps
 *
 * $Id: torp.h,v 1.3 2003/11/02 20:53:00 jon Exp $
 *
 * Copyright 1999-2004 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
 */

#ifndef TORP_H_INCLUDED
#define TORP_H_INCLUDED

#include "conqdef.h"

typedef struct
{
  int status;			/* one of the TS_ values */
  int fuse;			/* seconds left */
  real x;			/* x and y coordinates of torps */
  real y;
  real dx;			/* x and y increments */
  real dy;			/*  in mega-meters per iter seconds */
  real mult;			/* multiplier when detonated */
  int war[NUMPLAYERTEAMS];	/* copy of war when fired */
} Torp_t;
#endif /* TORP_H_INCLUDED */