MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / init

Method init

Source/SimplePlayer.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28USING_NS_AX;
29
30bool SimplePlayer::init(int cubeID) {
31 if (!Sprite::init()) return false;
32
33 this->updateGamemode(cubeID, IconType::kIconTypeCube);
34 this->setContentSize({ 60, 60 });
35 this->setAnchorPoint({.25f, .25f});
36
37 return true;
38}
39
40void SimplePlayer::updateGamemode(int iconID, IconType mode) {
41 iconID = GameToolbox::inRange(iconID, 1, GameToolbox::getValueForGamemode(mode));

Callers 1

createMethod · 0.45

Calls 1

updateGamemodeMethod · 0.95

Tested by

no test coverage detected