C# Class Terraria.Entity

Show file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
active bool
direction int
height int
honeyWet bool
lavaWet bool
name string
oldDirection int
oldPosition Vector2
oldVelocity Vector2
position Vector2
velocity Vector2
wet bool
wetCount byte
whoAmI int
width int

Public Methods

Method Description
AngleFrom ( Vector2 Source ) : float
AngleTo ( Vector2 Destination ) : float
DirectionFrom ( Vector2 Source ) : Vector2
DirectionTo ( Vector2 Destination ) : Vector2
Distance ( Vector2 Other ) : float
DistanceSQ ( Vector2 Other ) : float
WithinRange ( Vector2 Target, float MaxRange ) : bool

Method Details

AngleFrom() public method

public AngleFrom ( Vector2 Source ) : float
Source Vector2
return float

AngleTo() public method

public AngleTo ( Vector2 Destination ) : float
Destination Vector2
return float

DirectionFrom() public method

public DirectionFrom ( Vector2 Source ) : Vector2
Source Vector2
return Vector2

DirectionTo() public method

public DirectionTo ( Vector2 Destination ) : Vector2
Destination Vector2
return Vector2

Distance() public method

public Distance ( Vector2 Other ) : float
Other Vector2
return float

DistanceSQ() public method

public DistanceSQ ( Vector2 Other ) : float
Other Vector2
return float

WithinRange() public method

public WithinRange ( Vector2 Target, float MaxRange ) : bool
Target Vector2
MaxRange float
return bool

Property Details

active public property

public bool active
return bool

direction public property

public int direction
return int

height public property

public int height
return int

honeyWet public property

public bool honeyWet
return bool

lavaWet public property

public bool lavaWet
return bool

name public property

public string name
return string

oldDirection public property

public int oldDirection
return int

oldPosition public property

public Vector2 oldPosition
return Vector2

oldVelocity public property

public Vector2 oldVelocity
return Vector2

position public property

public Vector2 position
return Vector2

velocity public property

public Vector2 velocity
return Vector2

wet public property

public bool wet
return bool

wetCount public property

public byte wetCount
return byte

whoAmI public property

public int whoAmI
return int

width public property

public int width
return int