Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorCamera.Factory Class Reference

Behavior factory. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorCamera.Factory:
Dragengine.Scenery.DefaultBehaviorFactory Dragengine.Scenery.BehaviorFactory

Classes

class  Instance
 Behavior instance. More...

Public Member Functions

ECBehavior addBehavior (BehaviorElementClass eclass, String id, Dictionary parameters)
 Add behavior to element class.
void addIgnoreComponent (ECBehaviorComponent component)
 Add component to ignore while rendering.
void dispose ()
 Dispose of behavior.
void forEachIgnoreComponent (Block ablock)
 Visit components to ignore while rendering using block.
ECPFloat getAdaptionTime ()
 Adaption time of the eye in seconds.
ECComposeAttachResource getAttach ()
 Attach resource.
ECBehaviorCollider getCollider ()
 Collider behavior or null to not attach.
ECPBoolean getEnableGI ()
 Enable global illumination (GI) if supported.
ECPBoolean getEnableHDRR ()
 Enable high definition range rendering (HDRR) if supported.
ECPFloat getExposure ()
 Exposure.
ECPFloat getFov ()
 Vertical field of view in degrees for the entire view.
ECPFloat getFovRatio ()
 Aspect ratio of the horizontal field of view to the vertical field of view.
ECPFloat getHighestIntensity ()
 Highest intensity the eye can adapt to.
ECPFloat getImageDistance ()
 Distance to the image plane.
LayerMask getLayerMask ()
ECPLayerMask getLayerMaskProperty ()
 Layer mask property.
LoadCamera getLoadCamera ()
 Camera loader or null.
ECPFloat getLowestIntensity ()
 Lowest intensity the eye can adapt to.
ECPString getPathParameters ()
 Path to camera parameters file (*.decamera) to use or null/empty string.
ECPFloat getViewDistance ()
 Viewing distance up to which world geometry is rendered.
Instance instance (BehaviorElement element)
 Get instance in element from owner element class.
Factory new ()
Factory new (BehaviorElementClass eclass, ECBehaviorCollider collider)
 Create behavior element class.
Factory new (BehaviorElementClass eclass, ECBehaviorCollider collider, String id)
Factory new (BehaviorElementClass eclass, ECBehaviorCollider collider, String id, String prefix)
void setLayerMask (LayerMask layerMask)
void setLoadCamera (LoadCamera loader)
 Set camera loader or null.
Public Member Functions inherited from Dragengine.Scenery.DefaultBehaviorFactory
void assertIdEmpty (String id)
 Assert id is empty string.
String factoryId ()
 Unique identifier of factory.
BindingManager getBindingManagerFor (String value)
 Binding manager matching value.
CommandManager getCommandManagerFor (String value)
 Command manager matching value.
BehaviorFactoryHelper getHelper ()
 Helper to use.
ECBehaviorPlayerControllable.Tracker getPlayerControllableActorFor (String value)
 Player controllable actor matching value.
ECBehaviorPlayerControllable.Tracker getPlayerControlledActorFor (String value)
 Trigger table matching value.
SimpleConversationConverter getSimpleConversationConverterFor (String value)
 Simple conversation converter matching value.
ConversationPlaybackSubTitle getSubTitleFor (String value)
 Conversation playback subtitle matching value.
GuiTheme getSubtitleThemeFor (String value)
 Subtitle gui theme matching value.
TranslationManager getTranslationManagerFor (String value)
 Translation manager matching value.
TSTriggerTable getTriggerTableFor (String value)
 Trigger table matching value.
DefaultBehaviorFactory new (String id)
void setHelper (BehaviorFactoryHelper helper)
 Set helper to use.

Static Public Member Functions

static ECBehaviorCamera getBehaviorIn (BehaviorElementClass eclass)
 Get behavior in element class or null if absent.

Public Attributes

ECPFloat pAdaptionTime
ECComposeAttachResource pAttach
ECBehaviorCollider pCollider
ECPBoolean pEnableGI
ECPBoolean pEnableHDRR
ECPFloat pExposure
ECPFloat pFov
ECPFloat pFovRatio
ECPFloat pHighestIntensity
Array pIgnoreComponents
ECPFloat pImageDistance
ECPLayerMask pLayerMask
LoadCamera pLoadCamera
ECPFloat pLowestIntensity
ECPString pPathParameters
ECPFloat pViewDistance
Public Attributes inherited from Dragengine.Scenery.DefaultBehaviorFactory
String pFactoryId
BehaviorFactoryHelper pHelper

Detailed Description

Behavior factory.

Version
1.25

Automatically assigns these behaviors if present before adding:

Example XML element class:

<behavior type='ECBehaviorCamera'>
<!-- optional: set layer mask (default empty). list of bits to set. -->
<string name='layerMask'>0 1 4</string>
<!-- optional: list of ECBehaviorComponent identifiers to ignore -->
<list name='ignoreComponents'>
<string>first</string>
<string>second</string>
</list>
</behavior>
<!-- for adding multiple behaviors use unique identifiers -->
<behavior type='ECBehaviorCamera' id='second'>
...
</behavior>

Element class properties added by the behavior can also be set directly inside the tag be removing the property name prefix and starting with a "." (for example ".propertyName").

Member Function Documentation

◆ addBehavior()

ECBehavior Dragengine.Scenery.ECBehaviorCamera.Factory.addBehavior ( BehaviorElementClass eclass,
String id,
Dictionary parameters )

Add behavior to element class.

Some behaviors support parameters. Parameters are provided as a Dictionary with parameter name as String key and parameter value as Object value. The type and format of value depends on the parameter name. Usually parameters indicate a dependency behavior to use. In this case the parameter name indicates the target behavior slot to assign the behavior to and the value is a String with the identifier of the behavior to assign. The target slot defines what what existing behaviors are matched against this identifier. Value can be also null to assign the null behavior.

Parameters
eclassElement class to add behavior to.
idIdentifier to use. Has to be unique amongst same type behaviors.
parametersParameters as Dictionary with String name and Object value.

Implements Dragengine.Scenery.BehaviorFactory.

References addBehavior(), and new().

Referenced by addBehavior(), and getBehaviorIn().

◆ addIgnoreComponent()

void Dragengine.Scenery.ECBehaviorCamera.Factory.addIgnoreComponent ( ECBehaviorComponent component)

Add component to ignore while rendering.

Version
1.32

References pIgnoreComponents, pLayerMask, pLoadCamera, and pPathParameters.

Referenced by getBehaviorIn().

◆ dispose()

void Dragengine.Scenery.ECBehaviorCamera.Factory.dispose ( )

Dispose of behavior.

References getLoadCamera(), and getPathParameters().

Referenced by getBehaviorIn().

◆ forEachIgnoreComponent()

void Dragengine.Scenery.ECBehaviorCamera.Factory.forEachIgnoreComponent ( Block ablock)

Visit components to ignore while rendering using block.

Version
1.32

Referenced by getBehaviorIn(), and getExposure().

◆ getAdaptionTime()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getAdaptionTime ( )

Adaption time of the eye in seconds.

Referenced by getBehaviorIn().

◆ getAttach()

ECComposeAttachResource Dragengine.Scenery.ECBehaviorCamera.Factory.getAttach ( )

Attach resource.

Referenced by getBehaviorIn(), and getImageDistance().

◆ getBehaviorIn()

◆ getCollider()

ECBehaviorCollider Dragengine.Scenery.ECBehaviorCamera.Factory.getCollider ( )

Collider behavior or null to not attach.

Referenced by getBehaviorIn(), and getEnableGI().

◆ getEnableGI()

ECPBoolean Dragengine.Scenery.ECBehaviorCamera.Factory.getEnableGI ( )

Enable global illumination (GI) if supported.

References getCollider().

Referenced by getBehaviorIn().

◆ getEnableHDRR()

ECPBoolean Dragengine.Scenery.ECBehaviorCamera.Factory.getEnableHDRR ( )

Enable high definition range rendering (HDRR) if supported.

Referenced by getBehaviorIn().

◆ getExposure()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getExposure ( )

Exposure.

References forEachIgnoreComponent().

Referenced by getBehaviorIn().

◆ getFov()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getFov ( )

Vertical field of view in degrees for the entire view.

Referenced by getBehaviorIn().

◆ getFovRatio()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getFovRatio ( )

Aspect ratio of the horizontal field of view to the vertical field of view.

Referenced by getBehaviorIn().

◆ getHighestIntensity()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getHighestIntensity ( )

Highest intensity the eye can adapt to.

Referenced by getBehaviorIn().

◆ getImageDistance()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getImageDistance ( )

Distance to the image plane.

References getAttach().

Referenced by getBehaviorIn().

◆ getLayerMask()

LayerMask Dragengine.Scenery.ECBehaviorCamera.Factory.getLayerMask ( )

◆ getLayerMaskProperty()

ECPLayerMask Dragengine.Scenery.ECBehaviorCamera.Factory.getLayerMaskProperty ( )

Layer mask property.

Version
1.35

References pCollider.

Referenced by getBehaviorIn().

◆ getLoadCamera()

LoadCamera Dragengine.Scenery.ECBehaviorCamera.Factory.getLoadCamera ( )

Camera loader or null.

Version
1.22

By default set to BehaviorElementClass.sharedFactoryHelper.getLoaders().getCamera().

References pAttach, pCollider, pFov, pFovRatio, pImageDistance, and pViewDistance.

Referenced by dispose(), and getBehaviorIn().

◆ getLowestIntensity()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getLowestIntensity ( )

Lowest intensity the eye can adapt to.

Referenced by getBehaviorIn().

◆ getPathParameters()

ECPString Dragengine.Scenery.ECBehaviorCamera.Factory.getPathParameters ( )

Path to camera parameters file (*.decamera) to use or null/empty string.

Version
1.22

If not null/empty path the settings override the manual settings. Requires camera loader to be set.

Referenced by dispose(), and getBehaviorIn().

◆ getViewDistance()

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.getViewDistance ( )

Viewing distance up to which world geometry is rendered.

Referenced by getBehaviorIn().

◆ instance()

Instance Dragengine.Scenery.ECBehaviorCamera.Factory.instance ( BehaviorElement element)

Get instance in element from owner element class.

References new().

Referenced by Dragengine.Scenery.ECBehaviorCamera.Factory.Instance.addToGameWorld(), and getBehaviorIn().

◆ new() [1/4]

Factory Dragengine.Scenery.ECBehaviorCamera.Factory.new ( )

References new().

Referenced by addBehavior(), getBehaviorIn(), instance(), and new().

◆ new() [2/4]

Factory Dragengine.Scenery.ECBehaviorCamera.Factory.new ( BehaviorElementClass eclass,
ECBehaviorCollider collider )

Create behavior element class.

These values are optional and can be null: collider.

◆ new() [3/4]

Factory Dragengine.Scenery.ECBehaviorCamera.Factory.new ( BehaviorElementClass eclass,
ECBehaviorCollider collider,
String id )

◆ new() [4/4]

Factory Dragengine.Scenery.ECBehaviorCamera.Factory.new ( BehaviorElementClass eclass,
ECBehaviorCollider collider,
String id,
String prefix )

References setLayerMask().

◆ setLayerMask()

void Dragengine.Scenery.ECBehaviorCamera.Factory.setLayerMask ( LayerMask layerMask)
Deprecated
Use getLayerMaskProperty() instead.

Referenced by getBehaviorIn(), and new().

◆ setLoadCamera()

void Dragengine.Scenery.ECBehaviorCamera.Factory.setLoadCamera ( LoadCamera loader)

Set camera loader or null.

Version
1.22

References pAdaptionTime, pEnableGI, pEnableHDRR, pExposure, pHighestIntensity, and pLowestIntensity.

Referenced by getBehaviorIn().

Member Data Documentation

◆ pAdaptionTime

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pAdaptionTime

Referenced by getBehaviorIn(), and setLoadCamera().

◆ pAttach

ECComposeAttachResource Dragengine.Scenery.ECBehaviorCamera.Factory.pAttach

Referenced by getBehaviorIn(), and getLoadCamera().

◆ pCollider

ECBehaviorCollider Dragengine.Scenery.ECBehaviorCamera.Factory.pCollider

◆ pEnableGI

ECPBoolean Dragengine.Scenery.ECBehaviorCamera.Factory.pEnableGI

Referenced by getBehaviorIn(), and setLoadCamera().

◆ pEnableHDRR

ECPBoolean Dragengine.Scenery.ECBehaviorCamera.Factory.pEnableHDRR

Referenced by getBehaviorIn(), and setLoadCamera().

◆ pExposure

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pExposure

Referenced by getBehaviorIn(), and setLoadCamera().

◆ pFov

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pFov

Referenced by getBehaviorIn(), and getLoadCamera().

◆ pFovRatio

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pFovRatio

Referenced by getBehaviorIn(), and getLoadCamera().

◆ pHighestIntensity

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pHighestIntensity

Referenced by getBehaviorIn(), and setLoadCamera().

◆ pIgnoreComponents

Array Dragengine.Scenery.ECBehaviorCamera.Factory.pIgnoreComponents

◆ pImageDistance

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pImageDistance

Referenced by getBehaviorIn(), and getLoadCamera().

◆ pLayerMask

ECPLayerMask Dragengine.Scenery.ECBehaviorCamera.Factory.pLayerMask

◆ pLoadCamera

LoadCamera Dragengine.Scenery.ECBehaviorCamera.Factory.pLoadCamera

◆ pLowestIntensity

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pLowestIntensity

Referenced by getBehaviorIn(), and setLoadCamera().

◆ pPathParameters

ECPString Dragengine.Scenery.ECBehaviorCamera.Factory.pPathParameters

◆ pViewDistance

ECPFloat Dragengine.Scenery.ECBehaviorCamera.Factory.pViewDistance

Referenced by getBehaviorIn(), and getLoadCamera().


The documentation for this class was generated from the following file: