PokéRogue
GitHub
Switch to Main
Preparing search index...
test/test-utils/mocks/mocks-container/mock-rectangle
MockRectangle
Class MockRectangle
Implements
MockGameObject
Index
Constructors
constructor
Properties
active
fill
Color
list
name
scene
Methods
add
add
At
added
To
Scene
destroy
get
All
get
At
get
Index
off
once
remove
remove
All
remove
From
Display
List
set
Active
set
Alpha
set
Name
set
Origin
set
Position
Relative
set
Scale
set
Visible
Constructors
constructor
new
MockRectangle
(
textureManager
:
any
,
_x
:
any
,
_y
:
any
,
_width
:
any
,
_height
:
any
,
fillColor
:
any
,
)
:
MockRectangle
Parameters
textureManager
:
any
_x
:
any
_y
:
any
_width
:
any
_height
:
any
fillColor
:
any
Returns
MockRectangle
Properties
active
active
:
boolean
= true
Private
fill
Color
fillColor
:
any
list
list
:
MockGameObject
[]
= []
name
name
:
string
Private
scene
scene
:
any
Methods
add
add
(
obj
:
MockGameObject
|
MockGameObject
[]
)
:
this
Parameters
obj
:
MockGameObject
|
MockGameObject
[]
Returns
this
add
At
addAt
(
obj
:
any
,
index
:
any
)
:
this
Parameters
obj
:
any
index
:
any
Returns
this
added
To
Scene
addedToScene
()
:
void
Returns
void
destroy
destroy
()
:
void
Returns
void
get
All
getAll
()
:
MockGameObject
[]
Returns
MockGameObject
[]
get
At
getAt
(
index
:
any
)
:
MockGameObject
Parameters
index
:
any
Returns
MockGameObject
get
Index
getIndex
(
obj
:
any
)
:
number
Parameters
obj
:
any
Returns
number
off
off
()
:
this
Returns
this
once
once
(
_event
:
any
,
_callback
:
any
,
_source
:
any
)
:
this
Parameters
_event
:
any
_callback
:
any
_source
:
any
Returns
this
remove
remove
(
obj
:
any
)
:
this
Parameters
obj
:
any
Returns
this
remove
All
removeAll
()
:
void
Returns
void
remove
From
Display
List
removeFromDisplayList
()
:
this
Returns
this
set
Active
setActive
(
active
:
boolean
)
:
this
Parameters
active
:
boolean
Returns
this
set
Alpha
setAlpha
(
_alpha
:
any
)
:
this
Parameters
_alpha
:
any
Returns
this
set
Name
setName
(
_name
:
any
)
:
this
Parameters
_name
:
any
Returns
this
set
Origin
setOrigin
(
_x
:
any
,
_y
:
any
)
:
this
Parameters
_x
:
any
_y
:
any
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
(
_scale
:
any
)
:
this
Parameters
_scale
:
any
Returns
this
set
Visible
setVisible
(
_visible
:
any
)
:
this
Parameters
_visible
:
any
Returns
this
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
active
fill
Color
list
name
scene
Methods
add
add
At
added
To
Scene
destroy
get
All
get
At
get
Index
off
once
remove
remove
All
remove
From
Display
List
set
Active
set
Alpha
set
Name
set
Origin
set
Position
Relative
set
Scale
set
Visible
GitHub
Switch to Main
PokéRogue
Loading...