PolyEdit (of List)

class PolyEdit

Defined in PolygonEdit.sc.

This is an in-game polygon editor. It is not essential for the template game, but it is included for historical purposes.

Usage:

(PolyEdit:doit())

Properties

Inherited from List:

Property Description
elements  
size  
name  

Defined in PolyEdit:

Property Description
curPolygon  
x  
y  
state  
isMouseDown  
curMenu  
undoPrvPoly  
undoPoly  
undoPolyBuf  
undoX  
undoY  
undoState  

Methods

init()
doit()
dispose()
add()
delete(param1)
handleEvent(pEvent)
changeState(newState)
draw()
select(param1 param2)
selectPt()
addPt()
finishAdding()
movePt(param1 param2)
insertPt()
deletePt()
undo()
saveForUndo(param1)
advanceRetreat(param1 param2)
readObstacles()
writeObstacles()
showMap(param1)
exit()