Neodroid
0.2.0
Machine Learning Environment Prototyping Tool
ActionCounter.cs
Go to the documentation of this file.
1
using
droid
.
Runtime
.
Interfaces
;
2
using
UnityEngine
;
3
4
namespace
droid
.Runtime.Prototyping.Internals {
8
public
class
ActionCounter
:
EnvironmentListener
{
9
[SerializeField]
IAbstractPrototypingEnvironment
_environment;
10
13
public
IAbstractPrototypingEnvironment
ParentEnvironment {
14
get
{
return
this._environment; }
15
set
{ this._environment = value; }
16
}
17
21
public
override
string
PrototypingTypeName {
get
{
return
"ActionCounter"
; } }
22
26
protected
override
void
Clear
() {
27
/*if (!this._environment) {
28
this._environment = this.GetComponent<PrototypingEnvironment>();
29
}*/
30
}
31
34
void
HandleStep() {
35
var reaction = this._environment.
LastReaction
;
36
var motions = reaction.Motions;
37
}
38
42
public
override
void
EnvironmentReset
() { }
43
47
public
override
void
PreStep
() { }
48
52
public
override
void
Step
() { this.HandleStep(); }
53
57
public
override
void
PostStep
() { }
58
}
59
}
droid.Runtime.Interfaces
Definition:
IAbstractPrototypingEnvironment.cs:5
droid.Runtime.Interfaces.IEnvironment.LastReaction
Reaction LastReaction
Definition:
IEnvironment.cs:11
droid.Runtime.Prototyping.Internals.EnvironmentListener
Definition:
EnvironmentListener.cs:11
droid
droid.Runtime.Prototyping.Internals.ActionCounter.PreStep
override void PreStep()
Definition:
ActionCounter.cs:47
droid.Runtime.Prototyping.Internals.ActionCounter.PostStep
override void PostStep()
Definition:
ActionCounter.cs:57
droid.Runtime.Prototyping.Internals.ActionCounter.Step
override void Step()
Definition:
ActionCounter.cs:52
droid.Runtime.Prototyping.Internals.ActionCounter
Definition:
ActionCounter.cs:8
droid.Runtime.Interfaces.IAbstractPrototypingEnvironment
Definition:
IAbstractPrototypingEnvironment.cs:9
droid.Runtime
droid.Runtime.Prototyping.Internals.ActionCounter.Clear
override void Clear()
Definition:
ActionCounter.cs:26
droid.Runtime.Prototyping.Internals.ActionCounter.EnvironmentReset
override void EnvironmentReset()
Definition:
ActionCounter.cs:42
UnityEngine
Runtime
Prototyping
Internals
ActionCounter.cs
Generated by
1.8.13