FS2_Open
Open source remastering of the Freespace 2 engine
ship Class Reference

#include <ship.h>

Public Member Functions

void clear ()
 

Public Attributes

int objnum
 
int ai_index
 
int ship_info_index
 
int hotkey
 
int escort_priority
 
int score
 
float assist_score_pct
 
int respawn_priority
 
ubyte pre_death_explosion_happened
 
ubyte wash_killed
 
char cargo1
 
char wing_status_wing_index
 
char wing_status_wing_pos
 
int alt_type_index
 
int callsign_index
 
char targeting_laser_bank
 
int targeting_laser_objnum
 
ubyte num_corkscrew_to_fire
 
int corkscrew_missile_bank
 
int next_corkscrew_fire
 
int final_death_time
 
int death_time
 
int end_death_time
 
int really_final_death_time
 
vec3d deathroll_rotvel
 
WarpEffectwarpin_effect
 
WarpEffectwarpout_effect
 
int next_fireball
 
int next_hit_spark
 
int num_hits
 
ship_spark sparks [MAX_SHIP_HITS]
 
bool use_special_explosion
 
int special_exp_damage
 
int special_exp_blast
 
int special_exp_inner
 
int special_exp_outer
 
bool use_shockwave
 
int special_exp_shockwave_speed
 
int special_exp_deathroll_time
 
int special_hitpoints
 
int special_shield
 
float ship_max_shield_strength
 
float ship_max_hull_strength
 
float max_shield_recharge
 
int ship_guardian_threshold
 
char ship_name [NAME_LENGTH]
 
int team
 
fix time_cargo_revealed
 
int arrival_location
 
int arrival_distance
 
int arrival_anchor
 
int arrival_path_mask
 
int arrival_cue
 
int arrival_delay
 
int departure_location
 
int departure_anchor
 
int departure_path_mask
 
int departure_cue
 
int departure_delay
 
int wingnum
 
int orders_accepted
 
ship_subsys subsys_list
 
ship_subsyslast_targeted_subobject [MAX_PLAYERS]
 
ship_subsys_info subsys_info [SUBSYSTEM_MAX]
 
floatshield_integrity
 
int shield_recharge_index
 
int weapon_recharge_index
 
int engine_recharge_index
 
float weapon_energy
 
float current_max_speed
 
int next_manage_ets
 
uint flags
 
uint flags2
 
int reinforcement_index
 
float afterburner_fuel
 
int cmeasure_count
 
int current_cmeasure
 
int cmeasure_fire_stamp
 
float target_shields_delta
 
float target_weapon_energy_delta
 
ship_weapon weapons
 
int shield_hits
 
SCP_vector< vec3dshield_points
 
float wash_intensity
 
vec3d wash_rot_axis
 
int wash_timestamp
 
int num_swarm_missiles_to_fire
 
int next_swarm_fire
 
int next_swarm_path
 
int num_turret_swarm_info
 
int swarm_missile_bank
 
int group
 
int death_roll_snd
 
int ship_list_index
 
int thruster_bitmap
 
float thruster_frame
 
int thruster_glow_bitmap
 
float thruster_glow_frame
 
float thruster_glow_noise
 
int thruster_secondary_glow_bitmap
 
int thruster_tertiary_glow_bitmap
 
int thruster_distortion_bitmap
 
int next_engine_stutter
 
fix base_texture_anim_frametime
 
float total_damage_received
 
float damage_ship [MAX_DAMAGE_SLOTS]
 
int damage_ship_id [MAX_DAMAGE_SLOTS]
 
int persona_index
 
int subsys_disrupted_flags
 
int subsys_disrupted_check_timestamp
 
uint create_time
 
int ts_index
 
int large_ship_blowup_index
 
int sub_expl_sound_handle [NUM_SUB_EXPL_HANDLES]
 
vec3d arc_pts [MAX_SHIP_ARCS][2]
 
int arc_timestamp [MAX_SHIP_ARCS]
 
ubyte arc_type [MAX_SHIP_ARCS]
 
int arc_next_time
 
float emp_intensity
 
float emp_decr
 
trailtrail_ptr [MAX_SHIP_CONTRAILS]
 
float tag_total
 
float tag_left
 
fix time_first_tagged
 
float level2_tag_total
 
float level2_tag_left
 
np_update np_updates [MAX_PLAYERS]
 
int lightning_stamp
 
ubyte awacs_warning_flag
 
int special_warpin_objnum
 
int special_warpout_objnum
 
ship_subsys fighter_beam_turret_data
 
model_subsystem beam_sys_info
 
int was_firing_last_frame [MAX_SHIP_PRIMARY_BANKS]
 
int primitive_sensor_range
 
intship_replacement_textures
 
int current_viewpoint
 
trailABtrail_ptr [MAX_SHIP_CONTRAILS]
 
trail_info ab_info [MAX_SHIP_CONTRAILS]
 
int ab_count
 
std::deque< bool > glow_point_bank_active
 
int shader_effect_num
 
int shader_effect_duration
 
int shader_effect_start_time
 
bool shader_effect_active
 
int last_fired_point [MAX_SHIP_PRIMARY_BANKS]
 
ship_subsyslast_fired_turret
 
int bay_doors_anim_done_time
 
EModelAnimationPosition bay_doors_status
 
int bay_doors_wanting_open
 
ubyte bay_doors_launched_from
 
bool bay_doors_need_open
 
int bay_doors_parent_shipnum
 
float secondary_point_reload_pct [MAX_SHIP_SECONDARY_BANKS][MAX_SLOTS]
 
float primary_rotate_rate [MAX_SHIP_PRIMARY_BANKS]
 
float primary_rotate_ang [MAX_SHIP_PRIMARY_BANKS]
 
int thrusters_start [MAX_MAN_THRUSTERS]
 
int thrusters_sounds [MAX_MAN_THRUSTERS]
 
SCP_vector< alt_classs_alt_classes
 
int ship_iff_color [MAX_IFFS][MAX_IFFS]
 
int ammo_low_complaint_count
 
int armor_type_idx
 
int shield_armor_type_idx
 
int collision_damage_type_idx
 
int debris_damage_type_idx
 
ushort debris_net_sig
 
int model_instance_num
 
fix time_created
 
fix radar_visible_since
 
fix radar_last_contact
 
RadarVisibility radar_last_status
 
RadarVisibility radar_current_status
 
SCP_string team_name
 
SCP_string secondary_team_name
 
fix team_change_timestamp
 
int team_change_time
 
float autoaim_fov
 

Detailed Description

Definition at line 534 of file ship.h.

Member Function Documentation

void ship::clear ( )

Definition at line 5552 of file ship.cpp.

Member Data Documentation

int ship::ab_count

Definition at line 760 of file ship.h.

Definition at line 759 of file ship.h.

trail* ship::ABtrail_ptr[MAX_SHIP_CONTRAILS]

Definition at line 758 of file ship.h.

float ship::afterburner_fuel

Definition at line 648 of file ship.h.

int ship::ai_index

Definition at line 538 of file ship.h.

int ship::alt_type_index

Definition at line 556 of file ship.h.

int ship::ammo_low_complaint_count

Definition at line 795 of file ship.h.

int ship::arc_next_time

Definition at line 714 of file ship.h.

vec3d ship::arc_pts[MAX_SHIP_ARCS][2]

Definition at line 711 of file ship.h.

int ship::arc_timestamp[MAX_SHIP_ARCS]

Definition at line 712 of file ship.h.

ubyte ship::arc_type[MAX_SHIP_ARCS]

Definition at line 713 of file ship.h.

int ship::armor_type_idx

Definition at line 796 of file ship.h.

int ship::arrival_anchor

Definition at line 612 of file ship.h.

int ship::arrival_cue

Definition at line 614 of file ship.h.

int ship::arrival_delay

Definition at line 615 of file ship.h.

int ship::arrival_distance

Definition at line 611 of file ship.h.

int ship::arrival_location

Definition at line 610 of file ship.h.

int ship::arrival_path_mask

Definition at line 613 of file ship.h.

float ship::assist_score_pct

Definition at line 543 of file ship.h.

float ship::autoaim_fov

Definition at line 817 of file ship.h.

ubyte ship::awacs_warning_flag

Definition at line 737 of file ship.h.

fix ship::base_texture_anim_frametime

Definition at line 691 of file ship.h.

int ship::bay_doors_anim_done_time

Definition at line 775 of file ship.h.

ubyte ship::bay_doors_launched_from

Definition at line 780 of file ship.h.

bool ship::bay_doors_need_open

Definition at line 781 of file ship.h.

int ship::bay_doors_parent_shipnum

Definition at line 782 of file ship.h.

EModelAnimationPosition ship::bay_doors_status

Definition at line 776 of file ship.h.

int ship::bay_doors_wanting_open

Definition at line 777 of file ship.h.

model_subsystem ship::beam_sys_info

Definition at line 744 of file ship.h.

int ship::callsign_index

Definition at line 557 of file ship.h.

char ship::cargo1

Definition at line 549 of file ship.h.

int ship::cmeasure_count

Definition at line 651 of file ship.h.

int ship::cmeasure_fire_stamp

Definition at line 654 of file ship.h.

int ship::collision_damage_type_idx

Definition at line 798 of file ship.h.

int ship::corkscrew_missile_bank

Definition at line 565 of file ship.h.

uint ship::create_time

Definition at line 701 of file ship.h.

int ship::current_cmeasure

Definition at line 652 of file ship.h.

float ship::current_max_speed

Definition at line 641 of file ship.h.

int ship::current_viewpoint

Definition at line 756 of file ship.h.

float ship::damage_ship[MAX_DAMAGE_SLOTS]

Definition at line 694 of file ship.h.

int ship::damage_ship_id[MAX_DAMAGE_SLOTS]

Definition at line 695 of file ship.h.

int ship::death_roll_snd

Definition at line 675 of file ship.h.

int ship::death_time

Definition at line 570 of file ship.h.

vec3d ship::deathroll_rotvel

Definition at line 573 of file ship.h.

int ship::debris_damage_type_idx

Definition at line 799 of file ship.h.

ushort ship::debris_net_sig

Definition at line 800 of file ship.h.

int ship::departure_anchor

Definition at line 618 of file ship.h.

int ship::departure_cue

Definition at line 620 of file ship.h.

int ship::departure_delay

Definition at line 621 of file ship.h.

int ship::departure_location

Definition at line 617 of file ship.h.

int ship::departure_path_mask

Definition at line 619 of file ship.h.

float ship::emp_decr

Definition at line 718 of file ship.h.

float ship::emp_intensity

Definition at line 717 of file ship.h.

int ship::end_death_time

Definition at line 571 of file ship.h.

int ship::engine_recharge_index

Definition at line 639 of file ship.h.

int ship::escort_priority

Definition at line 541 of file ship.h.

ship_subsys ship::fighter_beam_turret_data

Definition at line 743 of file ship.h.

int ship::final_death_time

Definition at line 569 of file ship.h.

uint ship::flags

Definition at line 644 of file ship.h.

uint ship::flags2

Definition at line 645 of file ship.h.

std::deque<bool> ship::glow_point_bank_active

Definition at line 763 of file ship.h.

int ship::group

Definition at line 674 of file ship.h.

int ship::hotkey

Definition at line 540 of file ship.h.

int ship::large_ship_blowup_index

Definition at line 706 of file ship.h.

int ship::last_fired_point[MAX_SHIP_PRIMARY_BANKS]

Definition at line 771 of file ship.h.

ship_subsys* ship::last_fired_turret

Definition at line 772 of file ship.h.

ship_subsys* ship::last_targeted_subobject[MAX_PLAYERS]

Definition at line 631 of file ship.h.

float ship::level2_tag_left

Definition at line 728 of file ship.h.

float ship::level2_tag_total

Definition at line 727 of file ship.h.

int ship::lightning_stamp

Definition at line 734 of file ship.h.

float ship::max_shield_recharge

Definition at line 599 of file ship.h.

int ship::model_instance_num

Definition at line 802 of file ship.h.

int ship::next_corkscrew_fire

Definition at line 566 of file ship.h.

int ship::next_engine_stutter

Definition at line 689 of file ship.h.

int ship::next_fireball

Definition at line 578 of file ship.h.

int ship::next_hit_spark

Definition at line 580 of file ship.h.

int ship::next_manage_ets

Definition at line 642 of file ship.h.

int ship::next_swarm_fire

Definition at line 669 of file ship.h.

int ship::next_swarm_path

Definition at line 670 of file ship.h.

np_update ship::np_updates[MAX_PLAYERS]

Definition at line 731 of file ship.h.

ubyte ship::num_corkscrew_to_fire

Definition at line 564 of file ship.h.

int ship::num_hits

Definition at line 581 of file ship.h.

int ship::num_swarm_missiles_to_fire

Definition at line 668 of file ship.h.

int ship::num_turret_swarm_info

Definition at line 671 of file ship.h.

int ship::objnum

Definition at line 537 of file ship.h.

int ship::orders_accepted

Definition at line 624 of file ship.h.

int ship::persona_index

Definition at line 696 of file ship.h.

ubyte ship::pre_death_explosion_happened

Definition at line 547 of file ship.h.

float ship::primary_rotate_ang[MAX_SHIP_PRIMARY_BANKS]

Definition at line 786 of file ship.h.

float ship::primary_rotate_rate[MAX_SHIP_PRIMARY_BANKS]

Definition at line 785 of file ship.h.

int ship::primitive_sensor_range

Definition at line 748 of file ship.h.

RadarVisibility ship::radar_current_status

Definition at line 810 of file ship.h.

fix ship::radar_last_contact

Definition at line 807 of file ship.h.

RadarVisibility ship::radar_last_status

Definition at line 809 of file ship.h.

fix ship::radar_visible_since

Definition at line 806 of file ship.h.

int ship::really_final_death_time

Definition at line 572 of file ship.h.

int ship::reinforcement_index

Definition at line 646 of file ship.h.

int ship::respawn_priority

Definition at line 544 of file ship.h.

SCP_vector<alt_class> ship::s_alt_classes

Definition at line 791 of file ship.h.

int ship::score

Definition at line 542 of file ship.h.

float ship::secondary_point_reload_pct[MAX_SHIP_SECONDARY_BANKS][MAX_SLOTS]

Definition at line 784 of file ship.h.

SCP_string ship::secondary_team_name

Definition at line 813 of file ship.h.

bool ship::shader_effect_active

Definition at line 769 of file ship.h.

int ship::shader_effect_duration

Definition at line 767 of file ship.h.

int ship::shader_effect_num

Definition at line 766 of file ship.h.

int ship::shader_effect_start_time

Definition at line 768 of file ship.h.

int ship::shield_armor_type_idx

Definition at line 797 of file ship.h.

int ship::shield_hits

Definition at line 660 of file ship.h.

float* ship::shield_integrity

Definition at line 634 of file ship.h.

SCP_vector<vec3d> ship::shield_points

Definition at line 662 of file ship.h.

int ship::shield_recharge_index

Definition at line 637 of file ship.h.

int ship::ship_guardian_threshold

Definition at line 601 of file ship.h.

int ship::ship_iff_color[MAX_IFFS][MAX_IFFS]

Definition at line 793 of file ship.h.

int ship::ship_info_index

Definition at line 539 of file ship.h.

int ship::ship_list_index

Definition at line 676 of file ship.h.

float ship::ship_max_hull_strength

Definition at line 597 of file ship.h.

float ship::ship_max_shield_strength

Definition at line 596 of file ship.h.

char ship::ship_name[NAME_LENGTH]

Definition at line 604 of file ship.h.

int* ship::ship_replacement_textures

Definition at line 751 of file ship.h.

ship_spark ship::sparks[MAX_SHIP_HITS]

Definition at line 582 of file ship.h.

int ship::special_exp_blast

Definition at line 586 of file ship.h.

int ship::special_exp_damage

Definition at line 585 of file ship.h.

int ship::special_exp_deathroll_time

Definition at line 591 of file ship.h.

int ship::special_exp_inner

Definition at line 587 of file ship.h.

int ship::special_exp_outer

Definition at line 588 of file ship.h.

int ship::special_exp_shockwave_speed

Definition at line 590 of file ship.h.

int ship::special_hitpoints

Definition at line 593 of file ship.h.

int ship::special_shield

Definition at line 594 of file ship.h.

int ship::special_warpin_objnum

Definition at line 740 of file ship.h.

int ship::special_warpout_objnum

Definition at line 741 of file ship.h.

int ship::sub_expl_sound_handle[NUM_SUB_EXPL_HANDLES]

Definition at line 707 of file ship.h.

int ship::subsys_disrupted_check_timestamp

Definition at line 699 of file ship.h.

int ship::subsys_disrupted_flags

Definition at line 698 of file ship.h.

ship_subsys_info ship::subsys_info[SUBSYSTEM_MAX]

Definition at line 632 of file ship.h.

ship_subsys ship::subsys_list

Definition at line 630 of file ship.h.

int ship::swarm_missile_bank

Definition at line 672 of file ship.h.

float ship::tag_left

Definition at line 725 of file ship.h.

float ship::tag_total

Definition at line 724 of file ship.h.

float ship::target_shields_delta

Definition at line 656 of file ship.h.

float ship::target_weapon_energy_delta

Definition at line 657 of file ship.h.

char ship::targeting_laser_bank

Definition at line 560 of file ship.h.

int ship::targeting_laser_objnum

Definition at line 561 of file ship.h.

int ship::team

Definition at line 606 of file ship.h.

int ship::team_change_time

Definition at line 815 of file ship.h.

fix ship::team_change_timestamp

Definition at line 814 of file ship.h.

SCP_string ship::team_name

Definition at line 812 of file ship.h.

int ship::thruster_bitmap

Definition at line 678 of file ship.h.

int ship::thruster_distortion_bitmap

Definition at line 687 of file ship.h.

float ship::thruster_frame

Definition at line 679 of file ship.h.

int ship::thruster_glow_bitmap

Definition at line 681 of file ship.h.

float ship::thruster_glow_frame

Definition at line 682 of file ship.h.

float ship::thruster_glow_noise

Definition at line 683 of file ship.h.

int ship::thruster_secondary_glow_bitmap

Definition at line 685 of file ship.h.

int ship::thruster_tertiary_glow_bitmap

Definition at line 686 of file ship.h.

int ship::thrusters_sounds[MAX_MAN_THRUSTERS]

Definition at line 789 of file ship.h.

int ship::thrusters_start[MAX_MAN_THRUSTERS]

Definition at line 788 of file ship.h.

fix ship::time_cargo_revealed

Definition at line 608 of file ship.h.

fix ship::time_created

Definition at line 804 of file ship.h.

fix ship::time_first_tagged

Definition at line 726 of file ship.h.

float ship::total_damage_received

Definition at line 693 of file ship.h.

trail* ship::trail_ptr[MAX_SHIP_CONTRAILS]

Definition at line 721 of file ship.h.

int ship::ts_index

Definition at line 704 of file ship.h.

bool ship::use_shockwave

Definition at line 589 of file ship.h.

bool ship::use_special_explosion

Definition at line 584 of file ship.h.

WarpEffect* ship::warpin_effect

Definition at line 575 of file ship.h.

WarpEffect* ship::warpout_effect

Definition at line 576 of file ship.h.

int ship::was_firing_last_frame[MAX_SHIP_PRIMARY_BANKS]

Definition at line 745 of file ship.h.

float ship::wash_intensity

Definition at line 664 of file ship.h.

ubyte ship::wash_killed

Definition at line 548 of file ship.h.

vec3d ship::wash_rot_axis

Definition at line 665 of file ship.h.

int ship::wash_timestamp

Definition at line 666 of file ship.h.

float ship::weapon_energy

Definition at line 640 of file ship.h.

int ship::weapon_recharge_index

Definition at line 638 of file ship.h.

ship_weapon ship::weapons

Definition at line 658 of file ship.h.

char ship::wing_status_wing_index

Definition at line 552 of file ship.h.

char ship::wing_status_wing_pos

Definition at line 553 of file ship.h.

int ship::wingnum

Definition at line 623 of file ship.h.


The documentation for this class was generated from the following files: