PokéRogue
GitHub
Switch to Main
Preparing search index...
test/test-utils/mocks/mocks-container/mock-polygon
MockPolygon
Class MockPolygon
Hierarchy (
View Summary
)
MockContainer
MockPolygon
Index
Constructors
constructor
Properties
active
frame
height
list
name
scene
texture
Manager
visible
width
x
y
Methods
add
add
At
added
To
Scene
bring
To
Top
clear
Tint
copy
Position
destroy
disable
Interactive
each
get
All
get
At
get
Bounds
get
By
Name
get
Index
iterate
move
Above
move
Below
move
To
off
on
once
remove
remove
All
remove
Between
remove
From
Display
List
send
To
Back
set
Active
set
Alpha
set
Angle
set
Color
set
Depth
set
Font
Size
set
Frame
set
Interactive
set
Line
Spacing
set
Mask
set
Name
set
Origin
set
Position
set
Position
Relative
set
Scale
set
Shadow
set
Shadow
Color
set
Shadow
Offset
set
Size
set
Stroke
Style
set
Text
set
Texture
set
Tint
set
Visible
set
Word
Wrap
Width
set
X
set
Y
Constructors
constructor
new
MockPolygon
(
textureManager
:
any
,
x
:
any
,
y
:
any
,
_content
:
any
,
_fillColor
:
any
,
_fillAlpha
:
any
,
)
:
MockPolygon
Parameters
textureManager
:
any
x
:
any
y
:
any
_content
:
any
_fillColor
:
any
_fillAlpha
:
any
Returns
MockPolygon
Properties
active
active
:
boolean
= true
frame
frame
:
any
Protected
height
height
:
number
list
list
:
MockGameObject
[]
= []
name
name
:
string
Protected
scene
scene
:
any
Protected
texture
Manager
textureManager
:
any
Protected
visible
visible
:
boolean
Protected
width
width
:
number
Protected
x
x
:
number
Protected
y
y
:
number
Methods
add
add
(
obj
:
MockGameObject
|
MockGameObject
[]
)
:
this
Parameters
obj
:
MockGameObject
|
MockGameObject
[]
Returns
this
add
At
addAt
(
obj
:
MockGameObject
|
MockGameObject
[]
,
index
?:
number
)
:
this
Parameters
obj
:
MockGameObject
|
MockGameObject
[]
index
:
number
= 0
Returns
this
added
To
Scene
addedToScene
()
:
void
Returns
void
bring
To
Top
bringToTop
(
_obj
:
any
)
:
this
Parameters
_obj
:
any
Returns
this
clear
Tint
clearTint
()
:
this
Returns
this
copy
Position
copyPosition
(
source
:
{
x
?:
number
;
y
?:
number
}
)
:
this
Parameters
source
:
{
x
?:
number
;
y
?:
number
}
Returns
this
destroy
destroy
()
:
void
Returns
void
disable
Interactive
disableInteractive
()
:
this
Returns
this
each
each
(
callback
:
Function
,
context
?:
object
,
...
args
:
any
[]
)
:
this
Parameters
callback
:
Function
Optional
context
:
object
...
args
:
any
[]
Returns
this
get
All
getAll
()
:
MockGameObject
[]
Returns
MockGameObject
[]
get
At
getAt
(
index
:
any
)
:
MockGameObject
Parameters
index
:
any
Returns
MockGameObject
get
Bounds
getBounds
()
:
{
height
:
number
;
width
:
number
}
Returns
{
height
:
number
;
width
:
number
}
get
By
Name
getByName
(
key
:
string
)
:
null
|
MockGameObject
Parameters
key
:
string
Returns
null
|
MockGameObject
get
Index
getIndex
(
obj
:
any
)
:
number
Parameters
obj
:
any
Returns
number
iterate
iterate
(
callback
:
Function
,
context
?:
object
,
...
args
:
any
[]
)
:
this
Parameters
callback
:
Function
Optional
context
:
object
...
args
:
any
[]
Returns
this
move
Above
moveAbove
(
_obj
:
any
)
:
this
Parameters
_obj
:
any
Returns
this
move
Below
moveBelow
(
_obj
:
any
)
:
this
Parameters
_obj
:
any
Returns
this
move
To
moveTo
(
_obj
:
any
)
:
this
Parameters
_obj
:
any
Returns
this
off
off
(
_event
:
any
,
_callback
:
any
,
_source
:
any
)
:
this
Parameters
_event
:
any
_callback
:
any
_source
:
any
Returns
this
on
on
(
_event
:
any
,
_callback
:
any
,
_source
:
any
)
:
this
Parameters
_event
:
any
_callback
:
any
_source
:
any
Returns
this
once
once
(
_event
:
any
,
_callback
:
any
,
_source
:
any
)
:
this
Parameters
_event
:
any
_callback
:
any
_source
:
any
Returns
this
remove
remove
(
obj
:
MockGameObject
|
MockGameObject
[]
,
destroyChild
?:
boolean
)
:
this
Parameters
obj
:
MockGameObject
|
MockGameObject
[]
destroyChild
:
boolean
= false
Returns
this
remove
All
removeAll
()
:
this
Returns
this
remove
Between
removeBetween
(
_startIndex
:
any
,
_endIndex
:
any
,
_destroyChild
:
any
)
:
this
Parameters
_startIndex
:
any
_endIndex
:
any
_destroyChild
:
any
Returns
this
remove
From
Display
List
removeFromDisplayList
()
:
this
Returns
this
send
To
Back
sendToBack
()
:
this
Returns
this
set
Active
setActive
(
active
:
boolean
)
:
this
Parameters
active
:
boolean
Returns
this
set
Alpha
setAlpha
(
alpha
?:
number
)
:
this
Parameters
alpha
:
number
= 1
Returns
this
set
Angle
setAngle
(
_angle
:
any
)
:
this
Parameters
_angle
:
any
Returns
this
set
Color
setColor
(
_color
:
any
)
:
this
Parameters
_color
:
any
Returns
this
set
Depth
setDepth
(
_depth
:
any
)
:
this
Parameters
_depth
:
any
Returns
this
set
Font
Size
setFontSize
(
_fontSize
:
any
)
:
this
Parameters
_fontSize
:
any
Returns
this
set
Frame
setFrame
(
_frame
:
any
,
_updateSize
?:
boolean
,
_updateOrigin
?:
boolean
)
:
this
Parameters
_frame
:
any
Optional
_updateSize
:
boolean
Optional
_updateOrigin
:
boolean
Returns
this
set
Interactive
setInteractive
()
:
this
Returns
this
set
Line
Spacing
setLineSpacing
(
_lineSpacing
:
any
)
:
this
Parameters
_lineSpacing
:
any
Returns
this
set
Mask
setMask
()
:
this
Returns
this
set
Name
setName
(
name
:
string
)
:
this
Parameters
name
:
string
Returns
this
set
Origin
setOrigin
(
x
?:
number
,
y
?:
number
)
:
this
Parameters
x
:
number
= 0.5
y
:
number
= x
Returns
this
set
Position
setPosition
(
x
?:
number
,
y
?:
number
,
_z
?:
number
,
_w
?:
number
)
:
this
Parameters
x
:
number
= 0
y
:
number
= x
_z
:
number
= 0
_w
:
number
= 0
Returns
this
set
Position
Relative
setPositionRelative
(
_source
:
any
,
_x
:
any
,
_y
:
any
)
:
this
Parameters
_source
:
any
_x
:
any
_y
:
any
Returns
this
set
Scale
setScale
(
_x
?:
number
,
_y
?:
number
)
:
this
Parameters
_x
:
number
= 1
_y
:
number
= _x
Returns
this
set
Shadow
setShadow
(
_shadowXpos
:
any
,
_shadowYpos
:
any
,
_shadowColor
:
any
)
:
this
Parameters
_shadowXpos
:
any
_shadowYpos
:
any
_shadowColor
:
any
Returns
this
set
Shadow
Color
setShadowColor
(
_color
:
any
)
:
this
Parameters
_color
:
any
Returns
this
set
Shadow
Offset
setShadowOffset
(
_offsetX
:
any
,
_offsetY
:
any
)
:
this
Parameters
_offsetX
:
any
_offsetY
:
any
Returns
this
set
Size
setSize
(
_width
:
number
,
_height
:
number
)
:
this
Parameters
_width
:
number
_height
:
number
Returns
this
set
Stroke
Style
setStrokeStyle
(
_thickness
:
any
,
_color
:
any
)
:
this
Parameters
_thickness
:
any
_color
:
any
Returns
this
set
Text
setText
(
_text
:
any
)
:
this
Parameters
_text
:
any
Returns
this
set
Texture
setTexture
(
_texture
:
any
)
:
this
Parameters
_texture
:
any
Returns
this
set
Tint
setTint
(
_color
:
this
)
:
MockPolygon
Parameters
_color
:
this
Returns
MockPolygon
set
Visible
setVisible
(
visible
:
boolean
)
:
this
Parameters
visible
:
boolean
Returns
this
set
Word
Wrap
Width
setWordWrapWidth
(
_width
:
any
)
:
void
Parameters
_width
:
any
Returns
void
set
X
setX
(
x
?:
number
)
:
this
Parameters
x
:
number
= 0
Returns
this
set
Y
setY
(
y
?:
number
)
:
this
Parameters
y
:
number
= 0
Returns
this
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
active
frame
height
list
name
scene
texture
Manager
visible
width
x
y
Methods
add
add
At
added
To
Scene
bring
To
Top
clear
Tint
copy
Position
destroy
disable
Interactive
each
get
All
get
At
get
Bounds
get
By
Name
get
Index
iterate
move
Above
move
Below
move
To
off
on
once
remove
remove
All
remove
Between
remove
From
Display
List
send
To
Back
set
Active
set
Alpha
set
Angle
set
Color
set
Depth
set
Font
Size
set
Frame
set
Interactive
set
Line
Spacing
set
Mask
set
Name
set
Origin
set
Position
set
Position
Relative
set
Scale
set
Shadow
set
Shadow
Color
set
Shadow
Offset
set
Size
set
Stroke
Style
set
Text
set
Texture
set
Tint
set
Visible
set
Word
Wrap
Width
set
X
set
Y
GitHub
Switch to Main
PokéRogue
Loading...