Oolite
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 866 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *)  key

Definition at line 10753 of file Universe.m.

11112 :(NSString *)key
11113{
11114 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11115 if (theSound != nil)
11116 {
11117 self = [self initWithSound:theSound];
11118 }
11119 else
11120 {
11121 [self release];
11122 self = nil;
11123 }
11124 return self;
11125}
return nil
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11087

◆ playCustomSoundWithKey:

- (void) playCustomSoundWithKey: (NSString *)  key

Definition at line 10753 of file Universe.m.

11128 :(NSString *)key
11129{
11130 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11131 if (theSound != nil) [self playSound:theSound];
11132}

◆ sourceWithCustomSoundKey:

+ (id) sourceWithCustomSoundKey: (NSString *)  key

Definition at line 10753 of file Universe.m.

11106 :(NSString *)key
11107{
11108 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
11109}

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