Home
last modified time | relevance | path

Searched refs:gravityMode (Results 1 – 20 of 20) sorted by relevance

/dports/games/powder-toy/The-Powder-Toy-95.0/src/gui/options/
H A DOptionsModel.cpp94 return sim->gravityMode; in GetGravityMode()
96 void OptionsModel::SetGravityMode(int gravityMode) in SetGravityMode() argument
98 sim->gravityMode = gravityMode; in SetGravityMode()
H A DOptionsView.cpp121 gravityMode = new ui::DropDown(ui::Point(Size.X-95, currentY), ui::Point(80, 16)); in OptionsView()
122 scrollPanel->AddChild(gravityMode); in OptionsView()
123 gravityMode->AddOption(std::pair<String, int>("Vertical", 0)); in OptionsView()
124 gravityMode->AddOption(std::pair<String, int>("Off", 1)); in OptionsView()
125 gravityMode->AddOption(std::pair<String, int>("Radial", 2)); in OptionsView()
126 gravityMode->SetActionCallback({ [this] { c->SetGravityMode(gravityMode->GetOption().second); } }); in OptionsView()
331 gravityMode->SetOption(sender->GetGravityMode()); in NotifySettingsChanged()
H A DOptionsController.cpp40 void OptionsController::SetGravityMode(int gravityMode) in SetGravityMode() argument
42 model->SetGravityMode(gravityMode); in SetGravityMode()
H A DOptionsController.h22 void SetGravityMode(int gravityMode);
H A DOptionsModel.h33 void SetGravityMode(int gravityMode);
H A DOptionsView.h24 ui::DropDown * gravityMode; variable
/dports/misc/dartsim/dart-6.11.1/dart/dynamics/detail/
H A DBodyNodeAspect.hpp111 bool gravityMode = true);
/dports/games/xshisen/xshisen-1.51/
H A Dbody.h116 Boolean gravityMode; member
H A Dmain.C89 offsetof(GlobRes, gravityMode), XtRString, (XtPointer)"False" },
333 else if (globRes.gravityMode) in main()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/gui/game/
H A DGameModel.cpp695 sim->gravityMode = saveData->gravityMode; in SetSave()
756 sim->gravityMode = saveData->gravityMode; in SetSaveFile()
1063 sim->gravityMode = 0; in ClearSimulation()
H A DGameController.cpp838 gameModel->GetSimulation()->gravityMode = (gameModel->GetSimulation()->gravityMode+1)%3; in SwitchGravity()
840 switch (gameModel->GetSimulation()->gravityMode) in SwitchGravity()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/client/
H A DGameSave.h97 int gravityMode; variable
H A DGameSave.cpp25 gravityMode(save.gravityMode), in GameSave()
172 gravityMode = 0; in InitVars()
658 CheckBsonFieldInt(iter, "gravityMode", &gravityMode); in readOPS()
1394 gravityMode = ((saveData[3]>>2)&0x03);// | ((c[3]>>2)&0x01); in readPSv()
1456 gravityMode = 0; in readPSv()
2512 bson_append_int(&b, "gravityMode", gravityMode); in serialiseOPS()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/
H A DSimulation.h110 int gravityMode; variable
H A DAir.cpp118 if(!sim.gravityMode) in update_airh()
H A DSimulation.cpp504 gameSave->gravityMode = gravityMode; in SaveSimOptions()
3255 switch (gravityMode) in GetGravityField()
3474 switch (gravityMode) in UpdateParticles()
4429 …if (elements[t].Falldown>1 && !grav->IsEnabled() && gravityMode==0 && parts[i].vy>fabsf(parts[i].v… in UpdateParticles()
4496 switch (gravityMode) in UpdateParticles()
4568 switch (gravityMode) in UpdateParticles()
5152 gravityMode(0), in Simulation()
/dports/misc/dartsim/dart-6.11.1/dart/utils/sdf/
H A DSdfParser.cpp706 bool gravityMode = getValueBool(bodyNodeElement, "gravity"); in readBodyNode() local
707 properties.mGravityMode = gravityMode; in readBodyNode()
/dports/misc/dartsim/dart-6.11.1/dart/dynamics/
H A DBodyNode.cpp248 bool gravityMode) in BodyNodeAspectProperties() argument
254 mGravityMode(gravityMode) in BodyNodeAspectProperties()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/lua/
H A DLuaScriptInterface.cpp1824 lua_pushnumber(l, luacon_sim->gravityMode); in simulation_gravityMode()
1827 int gravityMode = luaL_optint(l, 1, 0); in simulation_gravityMode() local
1828 luacon_sim->gravityMode = gravityMode; in simulation_gravityMode()
/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/elements/
H A DSTKM.cpp141 switch (sim->gravityMode) in Element_STKM_run_stickman()