public class RobotRenderEvent extends RobotEvent
Modifier and Type | Class and Description |
---|---|
static class |
RobotRenderEvent.MountPoint
Describes points on the robot model at which components are "mounted",
i.e.
|
Modifier and Type | Field and Description |
---|---|
int |
lightColor
Overrides the color of the robot chassis' light.
|
RobotRenderEvent.MountPoint[] |
mountPoints
Points on the robot at which component models may be rendered.
|
agent
Constructor and Description |
---|
RobotRenderEvent(Agent agent,
RobotRenderEvent.MountPoint[] mountPoints) |
Modifier and Type | Method and Description |
---|---|
int |
getColorMultiplier() |
int |
getColorValue(float rm,
float gm,
float bm) |
void |
multiplyColors(float r,
float g,
float b)
Multiplies the color or the robot chassis by a certain value.
|
void |
setLightColor(float r,
float g,
float b)
Convenience method for setting
lightColor . |
public final RobotRenderEvent.MountPoint[] mountPoints
public int lightColor
public RobotRenderEvent(Agent agent, RobotRenderEvent.MountPoint[] mountPoints)
public void setLightColor(float r, float g, float b)
lightColor
. Will clamp values
to between 0 and 1 and pack them into an RGB integer.public void multiplyColors(float r, float g, float b)
getColorMultiplier()
to obtain the pure multiplier or
getColorValue(float, float, float)
if you need to mix
your own color into it.public int getColorMultiplier()
public int getColorValue(float rm, float gm, float bm)