Oolite 1.91.0.7646-241128-10e222e
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 864 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 10720 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

◆ playCustomSoundWithKey:

- (void) playCustomSoundWithKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 10720 of file Universe.m.

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

◆ sourceWithCustomSoundKey:

+ (id) sourceWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 10720 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: