Oolite 1.91.0.7665-250419-c535bfe
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOSound(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:
 

Class Methods

(id) + soundWithCustomSoundKey:
 

Detailed Description

Definition at line 856 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 11063 of file Universe.m.

11063 :(NSString *)key
11064{
11065 [self release];
11066 return [[OOSound soundWithCustomSoundKey:key] retain];
11067}
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11055

References OOSound::soundWithCustomSoundKey:.

+ Here is the call graph for this function:

◆ soundWithCustomSoundKey:

+ (id) soundWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 11055 of file Universe.m.

11055 :(NSString *)key
11056{
11057 NSString *fileName = [UNIVERSE soundNameForCustomSoundKey:key];
11058 if (fileName == nil) return nil;
11059 return [ResourceManager ooSoundNamed:fileName inFolder:@"Sounds"];
11060}
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: