Mostly Harmless

UE2:Interaction (UE2Runtime)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:10, 17 May 2008 by Wormbo (Talk | contribs) (Auto-generated page)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UE2Runtime Object >> Interactions >> Interaction
Package: 
Engine
Direct subclasses:
Console, BaseGUIController
This class in other games:
UT2003, UT2004, UDK, UT3

Class: Engine.Interaction

Each individual Interaction is a jumping point in UScript. The should be the foundatation for any subsystem that requires interaction with the player (such as a menu).

Interactions take on two forms, the Global Interaction and the Local Interaction. The GI get's to process data before the LI and get's render time after the LI, so in essence the GI wraps the LI.

A dynamic array of GI's are stored in the InteractionMaster while each Viewport contains an array of LIs.


(c) 2001, Epic Games, Inc. All Rights Reserved

Properties

bActive

Type: bool

Is this interaction Getting Input

Default value: True

bNativeEvents

Type: bool


bRequiresTick

Type: bool

Does this interaction require game TICK

bVisible

Type: bool

Is this interaction being Displayed

Master

Type: InteractionMaster


ViewportOwner

Type: Player

Pointer to the ViewPort that "Owns" this interaction or none if it's Global

Functions

Native functions

ConsoleCommand

native function bool ConsoleCommand (coerce string S)


Initialize

native function Initialize ()


ScreenToWorld

native function Object.Vector ScreenToWorld (Object.Vector Location, optional Object.Vector CameraLocation, optional Object.Rotator CameraRotation)


WorldToScreen

native function Object.Vector WorldToScreen (Object.Vector Location, optional Object.Vector CameraLocation, optional Object.Rotator CameraRotation)


Events

Initialized

event Initialized ()


Other instance functions

KeyEvent

function bool KeyEvent (out Interactions.EInputKey Key, out Interactions.EInputAction Action, float Delta)


KeyType

function bool KeyType (out Interactions.EInputKey Key, optional string Unicode)


Message

function Message (coerce string Msg, float MsgLife)


PostRender

function PostRender (Canvas Canvas)


PreRender

function PreRender (Canvas Canvas)


SetFocus

function SetFocus ()


Tick

function Tick (float DeltaTime)