MCPcopy Create free account
hub / github.com/MyGUI/mygui / EnemyPanel

Method EnemyPanel

Demos/Demo_Pointers/EnemyPanel.cpp:12–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10{
11
12 EnemyPanel::EnemyPanel()
13 {
14 initialiseByAttributes(this);
15
16 const MyGUI::IntSize& size = mMainWidget->getParentSize();
17 int offset = size.width / 3;
18
19 mMainWidget->setPosition(
20 offset + offset - (mMainWidget->getWidth() / 2),
21 (size.height - mMainWidget->getHeight()) / 2);
22 }
23
24 bool EnemyPanel::isIntersect(int _x, int _y)
25 {

Callers

nothing calls this directly

Calls 4

getParentSizeMethod · 0.80
setPositionMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected