(SubgameEntity self, SubgameEntity other, SubgameEntity activator, GameExportsImpl gameExports)
| 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 | /* |
nothing calls this directly
no test coverage detected