Oolite 1.91.0.7678-250623-7b2f98d
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOSoundSource(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:
(void) - playCustomSoundWithKey:

Class Methods

(id) + sourceWithCustomSoundKey:

Detailed Description

Definition at line 864 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 11088 of file Universe.m.

11088 :(NSString *)key
11089{
11090 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11091 if (theSound != nil)
11092 {
11093 self = [self initWithSound:theSound];
11094 }
11095 else
11096 {
11097 [self release];
11098 self = nil;
11099 }
11100 return self;
11101}
return nil
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11063

References OOSoundSource::initWithSound:, nil, and OOSound::soundWithCustomSoundKey:.

Here is the call graph for this function:

◆ playCustomSoundWithKey:

- (void) playCustomSoundWithKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 11104 of file Universe.m.

11104 :(NSString *)key
11105{
11106 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11107 if (theSound != nil) [self playSound:theSound];
11108}

References nil, OOSoundSource::playSound:, and OOSound::soundWithCustomSoundKey:.

Here is the call graph for this function:

◆ sourceWithCustomSoundKey:

+ (id) sourceWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 11082 of file Universe.m.

11082 :(NSString *)key
11083{
11084 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
11085}

The documentation for this category was generated from the following files: