_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Public Attributes | List of all members
CSound Class Reference

#include <sound.h>

Public Member Functions

 CSound ()
 
sound.cpp - The sound.
 ~CSound ()
 

Public Attributes

unsigned int Mapref
 
unsigned char Range
 
unsigned char Number
 Range is a multiplier for DistanceSilent. More...
 
union {
   Mix_Chunk *   OneSound
 
   Mix_Chunk **   OneGroup
 if it's only a simple sound More...
 
   struct {
      CSound *   First
 
      CSound *   Second
 first group: selected sound More...
 
   }   TwoGroups
 when it's a simple group More...
 
Sound
 single, group, or table of sounds. More...
 

Detailed Description

Sound definition.

Constructor & Destructor Documentation

◆ CSound()

CSound::CSound ( )
inline

◆ ~CSound()

CSound::~CSound ( )

Member Data Documentation

◆ First

CSound* CSound::First

◆ Mapref

unsigned int CSound::Mapref

◆ Number

unsigned char CSound::Number

Range is a multiplier for DistanceSilent.

◆ OneGroup

Mix_Chunk** CSound::OneGroup

if it's only a simple sound

◆ OneSound

Mix_Chunk* CSound::OneSound

◆ Range

unsigned char CSound::Range

Range is a multiplier for DistanceSilent. 255 means infinite range of the sound.

◆ Second

CSound* CSound::Second

first group: selected sound

◆ Sound

union { ... } CSound::Sound

single, group, or table of sounds.

◆ TwoGroups

struct { ... } CSound::TwoGroups

when it's a simple group


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.