Oolite 1.91.0.7645-241119-222d325
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 857 of file Universe.h.

Method Documentation

◆ initWithCustomSoundKey:

- (id) initWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 10697 of file Universe.m.

11057 :(NSString *)key
11058{
11059 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11060 if (theSound != nil)
11061 {
11062 self = [self initWithSound:theSound];
11063 }
11064 else
11065 {
11066 [self release];
11067 self = nil;
11068 }
11069 return self;
11070}
return nil
id soundWithCustomSoundKey:(NSString *key)
Definition Universe.m:11032

◆ playCustomSoundWithKey:

- (void) playCustomSoundWithKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 10697 of file Universe.m.

11073 :(NSString *)key
11074{
11075 OOSound *theSound = [OOSound soundWithCustomSoundKey:key];
11076 if (theSound != nil) [self playSound:theSound];
11077}

◆ sourceWithCustomSoundKey:

+ (id) sourceWithCustomSoundKey: (NSString *) key

Extends class OOSoundSource.

Definition at line 10697 of file Universe.m.

11051 :(NSString *)key
11052{
11053 return [[[self alloc] initWithCustomSoundKey:key] autorelease];
11054}

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