Oolite
Loading...
Searching...
No Matches
OOSound(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:

Class Methods

(id) + soundWithCustomSoundKey:

Detailed Description

Definition at line 842 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString*) key

Extends class OOSound.

Definition at line 9958 of file Universe.m.

9958 :(NSString*)key
9959{
9960 [self release];
9961 return [[OOSound soundWithCustomSoundKey:key] retain];
9962}
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:9950

References OOSound::soundWithCustomSoundKey:.

Here is the call graph for this function:

◆ soundWithCustomSoundKey:

+ (id) soundWithCustomSoundKey: (NSString*) key

Extends class OOSound.

Definition at line 9950 of file Universe.m.

9950 :(NSString*)key
9951{
9952 NSString* fileName = [UNIVERSE soundNameForCustomSoundKey:key];
9953 if (fileName == nil)
9954 return nil;
9955 return [ResourceManager ooSoundNamed:fileName inFolder:@"Sounds"];
9956}
return nil
OOSound * ooSoundNamed:inFolder:(NSString *fileName,[inFolder] NSString *folderName)

References nil, and ResourceManager::ooSoundNamed:inFolder:.

Here is the call graph for this function:

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