naev 0.12.6
player_gui.c File Reference

Handles the GUIs the player owns. More...

#include "player_gui.h"
#include "array.h"
#include "log.h"
Include dependency graph for player_gui.c:

Go to the source code of this file.

Functions

void player_guiCleanup (void)
 Cleans up the player's GUI list.
int player_guiAdd (const char *name)
 Adds a gui to the player.
void player_guiRm (const char *name)
 Removes a player GUI.
int player_guiCheck (const char *name)
 Check if player has a GUI.
const char ** player_guiList (void)
 Gets the list of GUIs.

Variables

static char ** gui_list = NULL

Detailed Description

Handles the GUIs the player owns.

Definition in file player_gui.c.

Function Documentation

◆ player_guiAdd()

int player_guiAdd ( const char * name)

Adds a gui to the player.

Definition at line 39 of file player_gui.c.

◆ player_guiCheck()

int player_guiCheck ( const char * name)

Check if player has a GUI.

Definition at line 88 of file player_gui.c.

◆ player_guiCleanup()

void player_guiCleanup ( void )

Cleans up the player's GUI list.

Definition at line 28 of file player_gui.c.

◆ player_guiList()

const char ** player_guiList ( void )

Gets the list of GUIs.

Definition at line 103 of file player_gui.c.

◆ player_guiRm()

void player_guiRm ( const char * name)

Removes a player GUI.

Definition at line 78 of file player_gui.c.

Variable Documentation

◆ gui_list

char** gui_list = NULL
static

List of GUIs the player has.

Definition at line 23 of file player_gui.c.