FS2_Open
Open source remastering of the Freespace 2 engine
|
#include "asteroid/asteroid.h"
#include "cmeasure/cmeasure.h"
#include "debris/debris.h"
#include "debugconsole/console.h"
#include "fireball/fireballs.h"
#include "freespace2/freespace.h"
#include "globalincs/linklist.h"
#include "iff_defs/iff_defs.h"
#include "io/timer.h"
#include "jumpnode/jumpnode.h"
#include "lighting/lighting.h"
#include "mission/missionparse.h"
#include "network/multi.h"
#include "network/multiutil.h"
#include "object/deadobjectdock.h"
#include "object/objcollide.h"
#include "object/object.h"
#include "object/objectdock.h"
#include "object/objectshield.h"
#include "object/objectsnd.h"
#include "observer/observer.h"
#include "parse/scripting.h"
#include "playerman/player.h"
#include "radar/radar.h"
#include "radar/radarsetup.h"
#include "render/3d.h"
#include "ship/afterburner.h"
#include "ship/ship.h"
#include "weapon/beam.h"
#include "weapon/shockwave.h"
#include "weapon/swarm.h"
#include "weapon/weapon.h"
Go to the source code of this file.
Macros | |
#define | IMPORTANT_FLAGS (OF_COLLIDES) |
Variables | |
object | obj_free_list |
object | obj_used_list |
object | obj_create_list |
object * | Player_obj = NULL |
object * | Viewer_obj = NULL |
int | Cmdline_old_collision_sys |
object | Objects [MAX_OBJECTS] |
int | Num_objects =-1 |
int | Highest_object_index =-1 |
int | Highest_ever_object_index =0 |
int | Object_next_signature = 1 |
int | Object_inited = 0 |
int | Show_waypoints = 0 |
char * | Object_type_names [MAX_OBJECT_TYPES] |
obj_flag_name | Object_flag_names [] |
int | physics_paused = 0 |
int | ai_paused = 0 |
ubyte | Obj_weapon_group_id_used [WEAPON_MAX_GROUP_IDS] |
int | Arc_light = 1 |
fireball | Fireballs [] |
int | Collisions_enabled = 1 |
int | Cmdline_dis_weapons |
int | Num_pairs |
obj_pair | pair_used_list |
obj_pair | pair_free_list |
#define IMPORTANT_FLAGS (OF_COLLIDES) |
Definition at line 942 of file object.cpp.
Definition at line 12072 of file aicode.cpp.
Scan the object list, freeing down to num_used objects
num_used | Number of used objects to free down to |
Definition at line 152 of file object.cpp.
Definition at line 271 of file object.cpp.
Definition at line 260 of file object.cpp.
Definition at line 308 of file object.cpp.
Definition at line 289 of file object.cpp.
Add an element to the CheckObjects[] array, and update the object pairs. This is called from obj_create(), and the restore save-game code.
Definition at line 1901 of file object.cpp.
Allocates an object
Generally, obj_create() should be called to get an object, since it fills in important fields and does the linking.
Definition at line 370 of file object.cpp.
void obj_clear_weapon_group_id_list | ( | ) |
Called once a frame to mark all weapon groups as not having cast light yet.
Definition at line 1158 of file object.cpp.
void obj_client_post_interpolate | ( | ) |
Do client-side post-interpolation object movement
Definition at line 1748 of file object.cpp.
void obj_client_pre_interpolate | ( | ) |
Do client-side pre-interpolation object movement
Definition at line 1703 of file object.cpp.
int obj_create | ( | ubyte | type, |
int | parent_obj, | ||
int | instance, | ||
matrix * | orient, | ||
vec3d * | pos, | ||
float | radius, | ||
uint | flags | ||
) |
Initialize a new object. Adds to the list for the given segment.
The object will be a non-rendering, non-physics object. Pass -1 if no parent.
Definition at line 467 of file object.cpp.
Remove object from the world If Player_obj, don't remove it!
objnum | Object number to remove |
Definition at line 522 of file object.cpp.
void obj_delete_all_that_should_be_dead | ( | ) |
Definition at line 624 of file object.cpp.
Frees up an object
Generally, obj_delete() should be called to get rid of an object. This function deallocates the object entry after the object has been unlinked
Definition at line 429 of file object.cpp.
Returns a vector of the average position of all ships in the mission.
Definition at line 1796 of file object.cpp.
Quickly finds an object by its signature
Definition at line 2074 of file object.cpp.
Definition at line 1817 of file object.cpp.
Definition at line 1826 of file object.cpp.
void obj_init | ( | ) |
Sets up the free list & init player & whatever else
Definition at line 327 of file object.cpp.
void obj_init_all_ships_physics | ( | ) |
Definition at line 1689 of file object.cpp.
Add all newly created objects to the end of the used list and create their object pairs for collision detection
Definition at line 651 of file object.cpp.
Move all objects for the current frame
Definition at line 1383 of file object.cpp.
Definition at line 1167 of file object.cpp.
Definition at line 1103 of file object.cpp.
Definition at line 781 of file object.cpp.
Definition at line 682 of file object.cpp.
Definition at line 1772 of file object.cpp.
void obj_player_fire_stuff | ( | object * | objp, |
control_info | ci | ||
) |
Deals with firing player things like lasers, missiles, etc.
Separated out because of multiplayer issues.
Definition at line 720 of file object.cpp.
Definition at line 1625 of file object.cpp.
Definition at line 1938 of file object.cpp.
Definition at line 1604 of file object.cpp.
Definition at line 1537 of file object.cpp.
void obj_reset_all_collisions | ( | ) |
Reset all collisions
Definition at line 1985 of file object.cpp.
Call this if you want to change an object flag so that the object code knows what's going on. For instance if you turn off OF_COLLIDES, the object code needs to know this in order to actually turn the object collision detection off. By calling this you shouldn't get Int3's in the checkobject code. If you do, then put code in here to correctly handle the case.
Definition at line 1000 of file object.cpp.
Return the team for the object passed as a parameter
objp | Pointer to object that you want team for |
Definition at line 1843 of file object.cpp.
bool object_get_gliding | ( | object * | objp | ) |
Definition at line 2059 of file object.cpp.
Gets object model
Definition at line 2092 of file object.cpp.
bool object_glide_forced | ( | object * | objp | ) |
Definition at line 2066 of file object.cpp.
Definition at line 2025 of file object.cpp.
Definition at line 2019 of file object.cpp.
Makes an object start 'gliding'
It will continue on the same velocity that it was going, regardless of orientation -WMC
Definition at line 2036 of file object.cpp.
int ai_paused = 0 |
Definition at line 677 of file object.cpp.
int Arc_light = 1 |
Definition at line 1163 of file object.cpp.
int Cmdline_dis_weapons |
Render an object. Calls one of several routines based on type
Definition at line 491 of file cmdline.cpp.
int Cmdline_old_collision_sys |
Definition at line 489 of file cmdline.cpp.
int Collisions_enabled = 1 |
Definition at line 1374 of file object.cpp.
fireball Fireballs[] |
Definition at line 43 of file fireballs.cpp.
int Highest_ever_object_index =0 |
Definition at line 70 of file object.cpp.
int Highest_object_index =-1 |
Definition at line 69 of file object.cpp.
int Num_objects =-1 |
Definition at line 68 of file object.cpp.
int Num_pairs |
Removes any occurances of object 'a' from the pairs list.
Definition at line 32 of file objcollide.cpp.
object obj_create_list |
Definition at line 54 of file object.cpp.
object obj_free_list |
Definition at line 52 of file object.cpp.
object obj_used_list |
Definition at line 53 of file object.cpp.
ubyte Obj_weapon_group_id_used[WEAPON_MAX_GROUP_IDS] |
Definition at line 1153 of file object.cpp.
obj_flag_name Object_flag_names[] |
Definition at line 97 of file object.cpp.
int Object_inited = 0 |
Definition at line 72 of file object.cpp.
int Object_next_signature = 1 |
Definition at line 71 of file object.cpp.
char* Object_type_names[MAX_OBJECT_TYPES] |
Definition at line 76 of file object.cpp.
object Objects[MAX_OBJECTS] |
Definition at line 62 of file object.cpp.
obj_pair pair_free_list |
Definition at line 42 of file objcollide.cpp.
obj_pair pair_used_list |
Definition at line 41 of file objcollide.cpp.
int physics_paused = 0 |
Definition at line 677 of file object.cpp.
object* Player_obj = NULL |
Definition at line 56 of file object.cpp.
int Show_waypoints = 0 |
Definition at line 73 of file object.cpp.
object* Viewer_obj = NULL |
Definition at line 57 of file object.cpp.