This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing Functions (API)

Jump to: navigation, search

Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.

The administrator who locked it offered this explanation: Archived wiki

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 5: Line 5:
 
}}
 
}}
  
{{BZFS_API_Doc|keeptitle=1}}
+
{{BZFS_API_Doc}}
  
  
Line 49: Line 49:
 
2.3+
 
2.3+
 
  BZF_API bool [[bz_isPlayerPaused]] ( int playerID );
 
  BZF_API bool [[bz_isPlayerPaused]] ( int playerID );
  BZF_API bool [[bz_isPlayerSpawnable]] ( int playerID );
+
  BZF_API bool [[bz_canPlayerSpawn]]( int playerID );
 
  BZF_API bool [[bz_getPlayerCurrentState]] ( int playerID, bz_PlayerUpdateState &state );
 
  BZF_API bool [[bz_getPlayerCurrentState]] ( int playerID, bz_PlayerUpdateState &state );
BZF_API bool [[bz_getPlayerSpawnAtBase]] ( int playerId );
 
BZF_API bool [[bz_setPlayerSpawnable]] ( int playerID, bool spawn );
 
BZF_API void [[bz_setPlayerSpawnAtBase]] ( int playerId, bool base );
 
 
?
 
?
 
  BZF_API bool [[bz_getPlayerPosition]] ( int playerID, float pos[3], bool extrapolate );
 
  BZF_API bool [[bz_getPlayerPosition]] ( int playerID, float pos[3], bool extrapolate );
Line 83: Line 80:
 
  BZF_API bool [[bz_validAdminPassword]] ( const char* passwd );
 
  BZF_API bool [[bz_validAdminPassword]] ( const char* passwd );
 
  BZF_API bool [[bz_setPlayerOperator]] ( int playerId );
 
  BZF_API bool [[bz_setPlayerOperator]] ( int playerId );
 +
BZF_API bool [[bz_setPlayerSpawnable]] ( int playerID, bool spawn );
 +
BZF_API bool [[bz_isPlayerSpawnable]] ( int playerID );
 
?
 
?
 
  BZF_API bool [[bz_setPlayerLimboMessage]]( int playerID, const char* text );
 
  BZF_API bool [[bz_setPlayerLimboMessage]]( int playerID, const char* text );
Line 154: Line 153:
 
  BZF_API void [[bz_reloadUsers]] ();
 
  BZF_API void [[bz_reloadUsers]] ();
 
  BZF_API void [[bz_reloadHelp]] ();
 
  BZF_API void [[bz_reloadHelp]] ();
BZF_API void [[bz_reloadBadwords]] ();
 
 
  BZF_API int [[bz_getPlayerCount]] ( void );
 
  BZF_API int [[bz_getPlayerCount]] ( void );
 
  BZF_API bool [[bz_getShotMismatch]] ( void );
 
  BZF_API bool [[bz_getShotMismatch]] ( void );
Line 271: Line 269:
 
  BZF_API bool [[bz_setTimeLimit]] ( float timeLimit );
 
  BZF_API bool [[bz_setTimeLimit]] ( float timeLimit );
 
  BZF_API float [[bz_getTimeLimit]] ( void );
 
  BZF_API float [[bz_getTimeLimit]] ( void );
BZF_API float [[bz_getCountdownRemaining]] ( void );
 
 
  BZF_API bool [[bz_isTimeManualStart]] ( void );
 
  BZF_API bool [[bz_isTimeManualStart]] ( void );
 
  BZF_API bool [[bz_isCountDownActive]] ( void );
 
  BZF_API bool [[bz_isCountDownActive]] ( void );
 
  BZF_API bool [[bz_isCountDownInProgress]] ( void );
 
  BZF_API bool [[bz_isCountDownInProgress]] ( void );
 
  BZF_API bool [[bz_isCountDownPaused]] ( void );
 
  BZF_API bool [[bz_isCountDownPaused]] ( void );
BZF_API void [[bz_pauseCountdown]] ( int playerID );
 
 
  BZF_API void [[bz_pauseCountdown]] ( const char *pausedBy );
 
  BZF_API void [[bz_pauseCountdown]] ( const char *pausedBy );
BZF_API void [[bz_resumeCountdown]] ( int playerID );
 
 
  BZF_API void [[bz_resumeCountdown]] ( const char *resumedBy );
 
  BZF_API void [[bz_resumeCountdown]] ( const char *resumedBy );
BZF_API void [[bz_startCountdown]] ( int delay, float limit, int playerID );
 
 
  BZF_API void [[bz_startCountdown]] ( int delay, float limit, const char *byWho );
 
  BZF_API void [[bz_startCountdown]] ( int delay, float limit, const char *byWho );
BZF_API void [[bz_cancelCountdown]] ( int playerID );
 
 
  BZF_API void [[bz_cancelCountdown]] ( const char *canceledBy );
 
  BZF_API void [[bz_cancelCountdown]] ( const char *canceledBy );
  
Line 398: Line 391:
  
 
== See also ==
 
== See also ==
* [[BZFS API]]
+
[[BZFS API]]
* [[Events (API)|BZFS API Events]]
+
 
* [[Plug-ins]]
+
[[plug-ins]]
  
 
[[Category:BZFS_API_Functions]]
 
[[Category:BZFS_API_Functions]]

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page: