Oolite
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 849 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString*) key

Extends class OOSoundSource.

Definition at line 9973 of file Universe.m.

9973 :(NSString*)key
9974{
9975 OOSound* theSound = [OOSound soundWithCustomSoundKey:key];
9976 if (theSound != nil) {
9977 self = [self initWithSound:theSound];
9978 } else {
9979 [self release];
9980 self = nil;
9981 }
9982 return self;
9983}
return nil
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:9950

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

9985 :(NSString*)key
9986{
9987 OOSound* theSound = [OOSound soundWithCustomSoundKey:key];
9988 if (theSound != nil)
9989 [self playSound:theSound];
9990}

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

9968 :(NSString*)key
9969{
9970 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
9971}

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