com.threerings.openal.config
Class SounderConfig.Conditional

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.openal.config.SounderConfig.Implementation
          extended by com.threerings.openal.config.SounderConfig.Conditional
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
SounderConfig

public static class SounderConfig.Conditional
extends SounderConfig.Implementation

Plays the first sounder whose condition evaluates to true.


Field Summary
 SounderConfig.Case[] cases
          The condition cases.
 ConfigReference<SounderConfig> defaultSounder
          The default sounder reference.
 
Constructor Summary
SounderConfig.Conditional()
           
 
Method Summary
 Sounder.Implementation getSounderImplementation(AlContext ctx, Scope scope, Sounder.Implementation impl)
          Creates or updates a sounder implementation for this configuration.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.openal.config.SounderConfig.Implementation
getUpdateResources
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cases

@Editable
public SounderConfig.Case[] cases
The condition cases.


defaultSounder

@Editable(nullable=true)
public ConfigReference<SounderConfig> defaultSounder
The default sounder reference.

Constructor Detail

SounderConfig.Conditional

public SounderConfig.Conditional()
Method Detail

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: SounderConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class SounderConfig.Implementation

getSounderImplementation

public Sounder.Implementation getSounderImplementation(AlContext ctx,
                                                       Scope scope,
                                                       Sounder.Implementation impl)
Description copied from class: SounderConfig.Implementation
Creates or updates a sounder implementation for this configuration.

Specified by:
getSounderImplementation in class SounderConfig.Implementation
scope - the sounder's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.

invalidate

public void invalidate()
Description copied from class: SounderConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class SounderConfig.Implementation


Copyright © 2011. All Rights Reserved.