Oolite 1.91.0.7699-250829-cea269d
Loading...
Searching...
No Matches
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 11093 of file Universe.m.

11093 :(NSString *)key
11094{
11095 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11096 if (theSound != nil)
11097 {
11098 self = [self initWithSound:theSound];
11099 }
11100 else
11101 {
11102 [self release];
11103 self = nil;
11104 }
11105 return self;
11106}
return nil
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11068

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 11109 of file Universe.m.

11109 :(NSString *)key
11110{
11111 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11112 if (theSound != nil) [self playSound:theSound];
11113}

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 11087 of file Universe.m.

11087 :(NSString *)key
11088{
11089 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
11090}

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