MCPcopy Create free account
hub / github.com/demoth/jake2 / use

Method use

game/src/main/java/jake2/game/GameMisc.java:816–824  ·  view source on GitHub ↗
(SubgameEntity self, SubgameEntity other, SubgameEntity activator, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

814 private static EntUseAdapter light_use = new EntUseAdapter() {
815 public String getID() { return "light_use";}
816 public void use(SubgameEntity self, SubgameEntity other, SubgameEntity activator, GameExportsImpl gameExports) {
817 if ((self.spawnflags & START_OFF) != 0) {
818 gameExports.gameImports.configstring(Defines.CS_LIGHTS + self.style, "m");
819 self.spawnflags &= ~START_OFF;
820 } else {
821 gameExports.gameImports.configstring(Defines.CS_LIGHTS + self.style, "a");
822 self.spawnflags |= START_OFF;
823 }
824 }
825 };
826
827 /*

Callers

nothing calls this directly

Calls 7

G_FindMethod · 0.95
VectorScaleMethod · 0.95
VectorCopyMethod · 0.95
freeEntityMethod · 0.80
configstringMethod · 0.65
soundMethod · 0.65
soundindexMethod · 0.65

Tested by

no test coverage detected