Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOSoundSource(OOCustomSounds) Category Reference

#include <Universe.h>

Instance Methods

(id) - initWithCustomSoundKey:
 
(void) - playCustomSoundWithKey:
 

Class Methods

(id) + sourceWithCustomSoundKey:
 

Detailed Description

Definition at line 864 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 11080 of file Universe.m.

11080 :(NSString *)key
11081{
11082 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11083 if (theSound != nil)
11084 {
11085 self = [self initWithSound:theSound];
11086 }
11087 else
11088 {
11089 [self release];
11090 self = nil;
11091 }
11092 return self;
11093}
return nil
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11055

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

11096 :(NSString *)key
11097{
11098 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11099 if (theSound != nil) [self playSound:theSound];
11100}

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

11074 :(NSString *)key
11075{
11076 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
11077}

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