C# Class PGMEBackend.GLControls.GLEntityEditor

Datei anzeigen Open project: Diegoisawesome/AwesomeMapEditor-old

Public Properties

Property Type Description
currentEntities List
endMouseX int
endMouseY int
entityTypes Spritesheet
mouseX int
mouseY int
npcBoundsColor Color
rectDefaultColor Color
rectPaintColor Color
rectSelectColor Color
tool EntityEditorTools

Public Methods

Method Description
GLEntityEditor ( int w, int h ) : System
GetAllEntitiesWithinRect ( int startX, int startY, int endX, int endY ) : List
GetEntityNum ( Entity entity ) : int
GetTopEntityFromPos ( int x, int y ) : Entity
IsEntityWithinBounds ( Entity entity, int x1, int y1, int x2, int y2 ) : bool
MouseDoubleClick ( ) : void
MouseDown ( EntityEditorTools Tool ) : void
MouseLeave ( ) : void
MouseMove ( int x, int y ) : void
MouseUp ( EntityEditorTools Tool ) : void
Paint ( int w, int h ) : void

Private Methods

Method Description
PreRender ( ) : void
Render ( ) : void
SetupViewport ( ) : void

Method Details

GLEntityEditor() public method

public GLEntityEditor ( int w, int h ) : System
w int
h int
return System

GetAllEntitiesWithinRect() public method

public GetAllEntitiesWithinRect ( int startX, int startY, int endX, int endY ) : List
startX int
startY int
endX int
endY int
return List

GetEntityNum() public static method

public static GetEntityNum ( Entity entity ) : int
entity Entity
return int

GetTopEntityFromPos() public method

public GetTopEntityFromPos ( int x, int y ) : Entity
x int
y int
return Entity

IsEntityWithinBounds() public method

public IsEntityWithinBounds ( Entity entity, int x1, int y1, int x2, int y2 ) : bool
entity Entity
x1 int
y1 int
x2 int
y2 int
return bool

MouseDoubleClick() public method

public MouseDoubleClick ( ) : void
return void

MouseDown() public method

public MouseDown ( EntityEditorTools Tool ) : void
Tool EntityEditorTools
return void

MouseLeave() public method

public MouseLeave ( ) : void
return void

MouseMove() public method

public MouseMove ( int x, int y ) : void
x int
y int
return void

MouseUp() public method

public MouseUp ( EntityEditorTools Tool ) : void
Tool EntityEditorTools
return void

Paint() public method

public Paint ( int w, int h ) : void
w int
h int
return void

Property Details

currentEntities public_oe property

public List currentEntities
return List

endMouseX public_oe property

public int endMouseX
return int

endMouseY public_oe property

public int endMouseY
return int

entityTypes public_oe property

public Spritesheet entityTypes
return Spritesheet

mouseX public_oe property

public int mouseX
return int

mouseY public_oe property

public int mouseY
return int

npcBoundsColor public_oe property

public Color npcBoundsColor
return Color

rectDefaultColor public_oe property

public Color rectDefaultColor
return Color

rectPaintColor public_oe property

public Color rectPaintColor
return Color

rectSelectColor public_oe property

public Color rectSelectColor
return Color

tool public_oe property

public EntityEditorTools tool
return EntityEditorTools