Oolite 1.91.0.7745-260117-205bce7
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 868 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 11096 of file Universe.m.

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

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

11112 :(NSString *)key
11113{
11114 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11115 if (theSound != nil) [self playSound:theSound];
11116}

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

11090 :(NSString *)key
11091{
11092 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
11093}

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