Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
soundArray Struct Reference

#include <cockpit.h>

Public Member Functions

 soundArray ()
 
void deallocate ()
 
void allocate (int siz)
 
 ~soundArray ()
 

Public Attributes

soundContainerptr
 

Detailed Description

Definition at line 42 of file cockpit.h.

Constructor & Destructor Documentation

soundArray::soundArray ( )
inline

Definition at line 45 of file cockpit.h.

46  {
47  ptr = NULL;
48  }
soundArray::~soundArray ( )
inline

Definition at line 61 of file cockpit.h.

62  {
63  deallocate();
64  }

Member Function Documentation

void soundArray::allocate ( int  siz)
inline

Definition at line 56 of file cockpit.h.

Referenced by loadsounds().

57  {
58  deallocate();
59  ptr = new soundContainer[siz];
60  }
void soundArray::deallocate ( )
inline

Definition at line 49 of file cockpit.h.

50  {
51  if (ptr != NULL) {
52  delete[] ptr;
53  ptr = NULL;
54  }
55  }

Member Data Documentation

soundContainer* soundArray::ptr

Definition at line 44 of file cockpit.h.

Referenced by loadsounds(), and UpdateTimeCompressionSounds().


The documentation for this struct was generated from the following file: