main/weapon.c File Reference

#include "game.h"
#include "weapon.h"
#include "mono.h"
#include "player.h"
#include "gauges.h"
#include "error.h"
#include "sounds.h"
#include "text.h"
#include "powerup.h"
#include "newdemo.h"
#include "multi.h"
#include "reorder.h"

Functions

int player_has_weapon (int weapon_num, int secondary_flag)
void select_weapon (int weapon_num, int secondary_flag, int print_message, int wait_for_rearm)
void do_weapon_select (int weapon_num, int secondary_flag)
void auto_select_weapon (int weapon_type)
void show_weapon_status (void)
void maybe_select_primary (int weapon_index)
void maybe_select_secondary (int weapon_index)
int pick_up_secondary (int weapon_index, int count)
int pick_up_primary (int weapon_index)
int pick_up_ammo (int class_flag, int weapon_index, int ammo_count)

Variables

ubyte Primary_weapon_to_weapon_info [MAX_PRIMARY_WEAPONS] = {0, 11, 12, 13, 14}
ubyte Secondary_weapon_to_weapon_info [MAX_SECONDARY_WEAPONS] = {8, 15, 16, 17, 18}
int Primary_ammo_max [MAX_PRIMARY_WEAPONS] = {0, VULCAN_AMMO_MAX, 0, 0, 0}
ubyte Secondary_ammo_max [MAX_SECONDARY_WEAPONS] = {20, 10, 10, 5, 5}
weapon_info Weapon_info [MAX_WEAPON_TYPES]
int N_weapon_types = 0
byte Primary_weapon
byte Secondary_weapon

Function Documentation

void auto_select_weapon int  weapon_type  ) 
 

void do_weapon_select int  weapon_num,
int  secondary_flag
 

void maybe_select_primary int  weapon_index  ) 
 

void maybe_select_secondary int  weapon_index  ) 
 

int pick_up_ammo int  class_flag,
int  weapon_index,
int  ammo_count
 

int pick_up_primary int  weapon_index  ) 
 

int pick_up_secondary int  weapon_index,
int  count
 

int player_has_weapon int  weapon_num,
int  secondary_flag
 

void select_weapon int  weapon_num,
int  secondary_flag,
int  print_message,
int  wait_for_rearm
 

void show_weapon_status void   ) 
 


Variable Documentation

int N_weapon_types = 0
 

int Primary_ammo_max[MAX_PRIMARY_WEAPONS] = {0, VULCAN_AMMO_MAX, 0, 0, 0}
 

byte Primary_weapon
 

ubyte Primary_weapon_to_weapon_info[MAX_PRIMARY_WEAPONS] = {0, 11, 12, 13, 14}
 

ubyte Secondary_ammo_max[MAX_SECONDARY_WEAPONS] = {20, 10, 10, 5, 5}
 

byte Secondary_weapon
 

ubyte Secondary_weapon_to_weapon_info[MAX_SECONDARY_WEAPONS] = {8, 15, 16, 17, 18}
 

weapon_info Weapon_info[MAX_WEAPON_TYPES]
 


Generated on Mon Aug 28 20:55:34 2006 for D1X-Rebirth by  doxygen 1.4.6