Method | Description | |
---|---|---|
Player ( int entityId, string name, Microsoft.Xna.Framework.Graphics.Texture2D skin = null, Position position = null, LookDirection direction = null, double stance = 0.0 ) : Microsoft.Xna.Framework.Graphics |
Initialize a new instance of Player.
|
|
SetDirection ( LookDirection direction ) : void |
Set the direction in which this player is heading.
|
|
SetDirection ( float yaw, float pitch ) : void |
Set the direction in which this player is heading.
|
|
SetOnGround ( bool onGround ) : void |
Set whether or not this player is currently on the ground (not falling).
|
|
SetPosition ( Position position ) : void |
Updates the world position of this player.
|
|
SetPosition ( double x, double y, double z ) : void |
Updates the world position of this player.
|
|
SetStance ( double stance ) : void |
Set this player's stance.
|
public Player ( int entityId, string name, Microsoft.Xna.Framework.Graphics.Texture2D skin = null, Position position = null, LookDirection direction = null, double stance = 0.0 ) : Microsoft.Xna.Framework.Graphics | ||
entityId | int | The Entity ID of this player. |
name | string | Name of the player. |
skin | Microsoft.Xna.Framework.Graphics.Texture2D | The player skin. |
position | Position | World position of the player (X,Y,Z). |
direction | LookDirection | The direction the player is looking in (Yaw, Pitch). |
stance | double | The stance of the player. |
return | Microsoft.Xna.Framework.Graphics |
public SetDirection ( LookDirection direction ) : void | ||
direction | LookDirection | |
return | void |
public SetDirection ( float yaw, float pitch ) : void | ||
yaw | float | Yaw. |
pitch | float | Pitch. |
return | void |
public SetOnGround ( bool onGround ) : void | ||
onGround | bool | |
return | void |
public SetPosition ( Position position ) : void | ||
position | Position | |
return | void |
public SetPosition ( double x, double y, double z ) : void | ||
x | double | X position. |
y | double | Y position. |
z | double | Z position (height). |
return | void |