|
Wing Commander II
Reconstructed Win32 source (1996)
|
Weapon selection. More...
#include "game.h"Go to the source code of this file.
Functions | |
| short | find_next_gun (short obj, short currentGun) |
| int | select_guns (short selectedGun) |
| void | select_new_gun (void) |
| void | select_new_release_weapon (short preferredType) |
Weapon selection.
Definition in file select.c.
| short find_next_gun | ( | short | obj, |
| short | currentGun ) |
Definition at line 9 of file select.c.
References find_next_gun(), g_aObjectTypeData, g_aShipWeapons, OBJECT_CLASS_PROJECTILE, OBJECT_DATA_TURRET_GUN, ObjectTypeData::objectClass, and ShipWeaponSlot::type.
Referenced by find_next_gun(), select_new_gun(), and UpdateShipTurretGuns().
| int select_guns | ( | short | selectedGun | ) |
Definition at line 44 of file select.c.
References ShipWeaponSlot::disabled, g_aObjectTypeData, g_aShipWeapons, OBJECT_CLASS_PROJECTILE, ObjectTypeData::objectClass, select_guns(), and ShipWeaponSlot::type.
Referenced by select_guns(), select_new_gun(), and UpdateShipTurretGuns().
Definition at line 74 of file select.c.
References find_next_gun(), g_nSelectedGunType, get_mode(), InvalidateVduMode(), select_guns(), and select_new_gun().
Referenced by remove_weapon(), select_new_gun(), SelectCockpitVduMode(), and UpdateShipTurretGuns().
| void select_new_release_weapon | ( | short | preferredType | ) |
Definition at line 83 of file select.c.
References g_aObjectTypeData, g_aShipWeapons, g_nSelectedReleaseWeaponIndex, get_mode(), InvalidateVduMode(), OBJECT_CLASS_PROJECTILE, and select_new_release_weapon().
Referenced by remove_weapon(), select_new_release_weapon(), SelectCockpitVduMode(), and UpdateShipTurretGuns().