PokéRogue
GitHub
Switch to Main
Preparing search index...
test/test-utils/mocks/mocks-container/mock-graphics
MockGraphics
Class MockGraphics
Implements
MockGameObject
Index
Constructors
constructor
Properties
active
list
name
scene
Methods
add
add
At
added
To
Scene
begin
Path
copy
Position
create
Geometry
Mask
destroy
fill
Rect
fill
Style
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
MockGraphics
(
textureManager
:
any
,
_config
:
any
)
:
MockGraphics
Parameters
textureManager
:
any
_config
:
any
Returns
MockGraphics
Properties
active
active
:
boolean
= true
list
list
:
MockGameObject
[]
= []
name
name
:
string
Private
scene
scene
:
any
Methods
add
add
(
obj
:
any
)
:
this
Parameters
obj
:
any
Returns
this
add
At
addAt
(
obj
:
any
,
index
:
any
)
:
void
Parameters
obj
:
any
index
:
any
Returns
void
added
To
Scene
addedToScene
()
:
void
Returns
void
begin
Path
beginPath
()
:
this
Returns
this
copy
Position
copyPosition
(
_source
:
any
)
:
this
Parameters
_source
:
any
Returns
this
create
Geometry
Mask
createGeometryMask
()
:
this
Returns
this
destroy
destroy
()
:
void
Returns
void
fill
Rect
fillRect
(
_x
:
any
,
_y
:
any
,
_width
:
any
,
_height
:
any
)
:
this
Parameters
_x
:
any
_y
:
any
_width
:
any
_height
:
any
Returns
this
fill
Style
fillStyle
(
_color
:
any
)
:
this
Parameters
_color
:
any
Returns
this
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
(
_event
:
any
,
_callback
:
any
,
_source
:
any
)
:
this
Parameters
_event
:
any
_callback
:
any
_source
:
any
Returns
this
once
once
(
_event
:
any
,
_callback
:
any
,
_source
:
any
)
:
MockGraphics
Parameters
_event
:
any
_callback
:
any
_source
:
any
Returns
MockGraphics
remove
remove
(
obj
:
any
)
:
void
Parameters
obj
:
any
Returns
void
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
)
:
MockGraphics
Parameters
_name
:
any
Returns
MockGraphics
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
list
name
scene
Methods
add
add
At
added
To
Scene
begin
Path
copy
Position
create
Geometry
Mask
destroy
fill
Rect
fill
Style
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...