mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-08 07:28:22 -10:00
Removes about half of the Int3()'s in multiutil.cpp by making Assertions more robust, changing two functions to void type (because there was no way to get an error value from them, anyway), and adding two Verify()'s in case we ever decide to start using the multi variable change functions. Squash History: 1) Forgot to change one Assert to Assertion 2) Change Verify to Assertion, because of better argument support. 3) Fix a couple copy paste errors
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/*
|
|
* Copyright (C) Volition, Inc. 1999. All rights reserved.
|
|
*
|
|
* All source code herein is the property of Volition, Inc. You may not sell
|
|
* or otherwise commercially exploit the source or things you created based on the
|
|
* source.
|
|
*
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MULTI_OBSERVER_HEADER_FILE
|
|
#define _MULTI_OBSERVER_HEADER_FILE
|
|
|
|
// ---------------------------------------------------------------------------------------
|
|
// MULTI OBSERVER DEFINES/VARS
|
|
//
|
|
|
|
struct net_addr;
|
|
class player;
|
|
struct net_player;
|
|
|
|
// ---------------------------------------------------------------------------------------
|
|
// MULTI OBSERVER FUNCTIONS
|
|
//
|
|
|
|
// create a _permanent_ observer player
|
|
void multi_obs_create_player(int player_num,char *name,net_addr *addr,player *pl);
|
|
|
|
// create an explicit observer object and assign it to the passed player
|
|
void multi_obs_create_observer(net_player *pl);
|
|
|
|
// create observer object locally, and additionally, setup some other information
|
|
// ( client-side equivalent of multi_obs_create_observer() )
|
|
void multi_obs_create_observer_client();
|
|
|
|
// create objects for all known observers in the game at level start
|
|
// call this before entering a mission
|
|
// this implies for the local player in the case of a client or for _all_ players in the case of a server
|
|
void multi_obs_level_init();
|
|
|
|
// if i'm an observer, zoom to near my targted object (if any)
|
|
void multi_obs_zoom_to_target();
|
|
|
|
#endif
|