Oolite 1.91.0.7678-250623-7b2f98d
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 11071 of file Universe.m.

11071 :(NSString *)key
11072{
11073 [self release];
11074 return [[OOSound soundWithCustomSoundKey:key] retain];
11075}
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11063

References OOSound::soundWithCustomSoundKey:.

Here is the call graph for this function:

◆ soundWithCustomSoundKey:

+ (id) soundWithCustomSoundKey: (NSString *) key

Extends class OOSound.

Definition at line 11063 of file Universe.m.

11063 :(NSString *)key
11064{
11065 NSString *fileName = [UNIVERSE soundNameForCustomSoundKey:key];
11066 if (fileName == nil) return nil;
11067 return [ResourceManager ooSoundNamed:fileName inFolder:@"Sounds"];
11068}
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: