C# Class EssentialsPlugin.Utility.Entity

Mostrar archivo Open project: rexxar-tc/EssentialsPlugin

Public Methods

Method Description
CalculateMass ( IMyEntity entity ) : float
CheckForIntersection ( Dictionary testList, List beaconList, int &intersectElement ) : bool
CheckOwnership ( IMyCubeBlock entity, long playerId ) : System.Boolean
GetBlockEntityPosition ( IMyCubeBlock entity ) : Vector3D
GetBoundingBox ( IMyCubeGrid entity ) : OrientedBoundingBoxD
GetBoundingBox ( List cubeList ) : OrientedBoundingBoxD
GetDistanceBetweenGridAndPlayer ( IMyCubeGrid grid, IMyPlayer player, double &distance ) : bool
GetDistanceBetweenPointAndPlayer ( Vector3D point, IMyPlayer player, double &distance ) : bool
GreaterThan ( Vector3D v, Vector3D container ) : System.Boolean

Method Details

CalculateMass() public static method

public static CalculateMass ( IMyEntity entity ) : float
entity IMyEntity
return float

CheckForIntersection() public static method

public static CheckForIntersection ( Dictionary testList, List beaconList, int &intersectElement ) : bool
testList Dictionary
beaconList List
intersectElement int
return bool

CheckOwnership() public static method

public static CheckOwnership ( IMyCubeBlock entity, long playerId ) : System.Boolean
entity IMyCubeBlock
playerId long
return System.Boolean

GetBlockEntityPosition() public static method

public static GetBlockEntityPosition ( IMyCubeBlock entity ) : Vector3D
entity IMyCubeBlock
return Vector3D

GetBoundingBox() public static method

public static GetBoundingBox ( IMyCubeGrid entity ) : OrientedBoundingBoxD
entity IMyCubeGrid
return OrientedBoundingBoxD

GetBoundingBox() public static method

public static GetBoundingBox ( List cubeList ) : OrientedBoundingBoxD
cubeList List
return OrientedBoundingBoxD

GetDistanceBetweenGridAndPlayer() public static method

public static GetDistanceBetweenGridAndPlayer ( IMyCubeGrid grid, IMyPlayer player, double &distance ) : bool
grid IMyCubeGrid
player IMyPlayer
distance double
return bool

GetDistanceBetweenPointAndPlayer() public static method

public static GetDistanceBetweenPointAndPlayer ( Vector3D point, IMyPlayer player, double &distance ) : bool
point Vector3D
player IMyPlayer
distance double
return bool

GreaterThan() public static method

public static GreaterThan ( Vector3D v, Vector3D container ) : System.Boolean
v Vector3D
container Vector3D
return System.Boolean