An OpenAL 1.1 implementation will always support the {@code AL_EXT_OFFSET} extension. This allows an application written to the OpenAL 1.0 specification to
12 | * access the offset abilities.
13 | */
14 | public final class EXTOffset {
15 |
16 | /** {@code AL_EXT_OFFSET} tokens. */
17 | public static final int
18 | AL_SEC_OFFSET = 0x1024,
19 | AL_SAMPLE_OFFSET = 0x1025,
20 | AL_BYTE_OFFSET = 0x1026;
21 |
22 | private EXTOffset() {}
23 |
24 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/SOFTMSADPCM.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright LWJGL. All rights reserved.
3 | * License terms: https://www.lwjgl.org/license
4 | * MACHINE GENERATED FILE, DO NOT EDIT
5 | */
6 | package ru.m210projects.Build.desktop.audio.nopenal;
7 |
8 | /**
9 | * Native bindings to the SOFT_MSADPCM extension.
10 | *
11 | *
This extension adds support for MSADPCM compressed sample formats.
12 | */
13 | public final class SOFTMSADPCM {
14 |
15 | /** Accepted by the {@code format} parameter of {@link AL10#alBufferData BufferData}. */
16 | public static final int
17 | AL_FORMAT_MONO_MSADPCM_SOFT = 0x1302,
18 | AL_FORMAT_STEREO_MSADPCM_SOFT = 0x1303;
19 |
20 | private SOFTMSADPCM() {}
21 |
22 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/EXTMulawBFormat.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright LWJGL. All rights reserved.
3 | * License terms: https://www.lwjgl.org/license
4 | * MACHINE GENERATED FILE, DO NOT EDIT
5 | */
6 | package ru.m210projects.Build.desktop.audio.nopenal;
7 |
8 | /**
9 | * Native bindings to the {@code AL_EXT_MULAW_BFORMAT} extension.
10 | *
11 | *
This extension implies two MULAW formats are available, based on 2D and 3D Ambisonic B-Format.
12 | *
13 | *
See {@link EXTBFormat EXT_BFORMAT} for a discussion of the channel numberings and meanings.
14 | */
15 | public final class EXTMulawBFormat {
16 |
17 | /** Buffer formats. */
18 | public static final int
19 | AL_FORMAT_BFORMAT2D_MULAW = 0x10031,
20 | AL_FORMAT_BFORMAT3D_MULAW = 0x10032;
21 |
22 | private EXTMulawBFormat() {}
23 |
24 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Type/DAMAGE_DATA.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Type;
2 |
3 | import ru.m210projects.Wang.Player.Player_Action_Func;
4 |
5 | public class DAMAGE_DATA {
6 | public int id;
7 | public Player_Action_Func init;
8 | public short damage_lo;
9 | public short damage_hi;
10 | public int radius;
11 | public short max_ammo;
12 | public short min_ammo;
13 | public short with_weapon;
14 |
15 | public DAMAGE_DATA(int id, Player_Action_Func init, int damage_lo, int damage_hi, int radius, int max_ammo, int min_ammo, int with_weapon) {
16 | this.id = id;
17 | this.init = init;
18 | this.damage_lo = (short) damage_lo;
19 | this.damage_hi = (short) damage_hi;
20 | this.radius = radius;
21 | this.max_ammo = (short) max_ammo;
22 | this.min_ammo = (short) min_ammo;
23 | this.with_weapon = (short) with_weapon;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/EXTLinearDistance.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright LWJGL. All rights reserved.
3 | * License terms: https://www.lwjgl.org/license
4 | * MACHINE GENERATED FILE, DO NOT EDIT
5 | */
6 | package ru.m210projects.Build.desktop.audio.nopenal;
7 |
8 | /**
9 | * Native bindings to the {@code AL_EXT_LINEAR_DISTANCE} extension.
10 | *
11 | *
An OpenAL 1.1 implementation will always support the {@code AL_EXT_LINEAR_DISTANCE} extension. This allows an application written to the OpenAL 1.0 specification to
12 | * access the offset abilities.
An OpenAL 1.1 implementation will always support the {@code AL_EXT_EXPONENT_DISTANCE} extension. This allows an application written to the OpenAL 1.0 specification to
12 | * access the exponent distance abilities.
This extension allows any mono source to be changed to be a "large" source with a radius. The source has a raised cosine shape.
12 | */
13 | public final class EXTSourceRadius {
14 |
15 | /**
16 | * Can be used with {@link AL10#alSourcef Sourcef} to set the source radius. Units are consistent with the coordinate system in use. The value must be at least zero. Use
17 | * a value of zero to reset to a point source.
18 | */
19 | public static final int AL_SOURCE_RADIUS = 0x1031;
20 |
21 | private EXTSourceRadius() {}
22 |
23 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Witchaven/Menu/MenuQuit.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Witchaven.Menu;
2 |
3 | import ru.m210projects.Build.Pattern.BuildGame;
4 | import ru.m210projects.Build.Pattern.MenuItems.BuildMenu;
5 | import ru.m210projects.Build.Pattern.MenuItems.MenuHandler;
6 | import ru.m210projects.Build.Pattern.MenuItems.MenuText;
7 | import ru.m210projects.Build.Pattern.MenuItems.MenuVariants;
8 |
9 | public class MenuQuit extends BuildMenu {
10 |
11 | public MenuQuit(final BuildGame game)
12 | {
13 |
14 | MenuText QuitQuestion = new MenuText("Are you sure?", game.getFont(0), 160, 85, 1);
15 | MenuVariants QuitVariants = new MenuVariants(game.pEngine, "[Y/N]", game.getFont(0), 160, 102) {
16 | @Override
17 | public void positive(MenuHandler menu) {
18 | game.gExit = true;
19 | menu.mClose();
20 | }
21 | };
22 |
23 | addItem(QuitQuestion, false);
24 | addItem(QuitVariants, true);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/CALLPROC.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public interface CALLPROC {
20 | void run(int nIndex);
21 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Input/InputCallback.java:
--------------------------------------------------------------------------------
1 | //This file is part of BuildGDX.
2 | //Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | //BuildGDX is free software: you can redistribute it and/or modify
5 | //it under the terms of the GNU General Public License as published by
6 | //the Free Software Foundation, either version 3 of the License, or
7 | //(at your option) any later version.
8 | //
9 | //BuildGDX is distributed in the hope that it will be useful,
10 | //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | //GNU General Public License for more details.
13 | //
14 | //You should have received a copy of the GNU General Public License
15 | //along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Input;
18 |
19 | public interface InputCallback {
20 | int run(int ch);
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Factory/WangInterpolation.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Factory;
2 |
3 | import ru.m210projects.Build.Pattern.Tools.Interpolation;
4 | import ru.m210projects.Build.Types.SPRITE;
5 |
6 | public abstract class WangInterpolation extends Interpolation {
7 |
8 | public abstract int getSkipValue();
9 |
10 | public abstract int getSkipMax();
11 |
12 | public void requestUpdating() {
13 | if(getSkipValue() != (getSkipMax() - 1)) return;
14 | requestUpdating = true;
15 | }
16 |
17 | @Override
18 | public void dospriteinterp(SPRITE tsp, int smoothratio) {
19 | smoothratio += getSkipValue() << 16;
20 | smoothratio /= getSkipMax();
21 |
22 | super.dospriteinterp(tsp, smoothratio);
23 | }
24 |
25 | @Override
26 | public void dointerpolations(float smoothratio) {
27 | smoothratio += getSkipValue() << 16;
28 | smoothratio /= getSkipMax();
29 |
30 | super.dointerpolations(smoothratio);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Type/Remote_Control.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Type;
2 |
3 | public class Remote_Control {
4 | public static final int sizeof = 54;
5 |
6 | public short cursectnum, lastcursectnum, pang;
7 | public int xvect, yvect, oxvect, oyvect, slide_xvect, slide_yvect;
8 | public int posx, posy, posz;
9 | public int oposx, oposy, oposz;
10 |
11 | public void copy(Remote_Control src)
12 | {
13 | this.cursectnum = src.cursectnum;
14 | this.lastcursectnum = src.lastcursectnum;
15 | this.pang = src.pang;
16 |
17 | this.xvect = src.xvect;
18 | this.yvect = src.yvect;
19 | this.oxvect = src.oxvect;
20 | this.oyvect = src.oyvect;
21 | this.slide_xvect = src.slide_xvect;
22 | this.slide_yvect = src.slide_yvect;
23 |
24 | this.posx = src.posx;
25 | this.posy = src.posy;
26 | this.posz = src.posz;
27 |
28 | this.oposx = src.oposx;
29 | this.oposy = src.oposy;
30 | this.oposz = src.oposz;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/OnSceenDisplay/OSDCVARFUNC.java:
--------------------------------------------------------------------------------
1 | //This file is part of BuildGDX.
2 | //Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | //BuildGDX is free software: you can redistribute it and/or modify
5 | //it under the terms of the GNU General Public License as published by
6 | //the Free Software Foundation, either version 3 of the License, or
7 | //(at your option) any later version.
8 | //
9 | //BuildGDX is distributed in the hope that it will be useful,
10 | //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | //GNU General Public License for more details.
13 | //
14 | //You should have received a copy of the GNU General Public License
15 | //along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.OnSceenDisplay;
18 |
19 | public interface OSDCVARFUNC {
20 | void execute();
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/BUSYPROC.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public interface BUSYPROC {
20 | int run(int nIndex, int nBusy);
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Audio/SourceCallback.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Audio;
18 |
19 | public interface SourceCallback {
20 | void run(T ch);
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Launcher/desktop/PopupActionListener.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Launcher.desktop;
2 |
3 | import java.awt.event.ActionEvent;
4 | import java.awt.event.ActionListener;
5 |
6 | import javax.swing.event.PopupMenuEvent;
7 | import javax.swing.event.PopupMenuListener;
8 |
9 | class PopupActionListener implements ActionListener {
10 | public void actionPerformed(ActionEvent actionEvent) {
11 | System.out.println("Selected: " + actionEvent.getActionCommand());
12 | }
13 | }
14 |
15 | class MyPopupMenuListener implements PopupMenuListener {
16 | public void popupMenuCanceled(PopupMenuEvent popupMenuEvent) {
17 | System.out.println("Canceled");
18 | }
19 |
20 | public void popupMenuWillBecomeInvisible(PopupMenuEvent popupMenuEvent) {
21 | System.out.println("Becoming Invisible");
22 | }
23 |
24 | public void popupMenuWillBecomeVisible(PopupMenuEvent popupMenuEvent) {
25 | System.out.println("Becoming Visible");
26 | }
27 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Duke3D/Types/Animwalltype.java:
--------------------------------------------------------------------------------
1 | // This file is part of DukeGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // DukeGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // DukeGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with DukeGDX. If not, see .
16 |
17 | package ru.m210projects.Duke3D.Types;
18 |
19 | public class Animwalltype {
20 | public short wallnum;
21 | public int tag;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/INVITEM.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class INVITEM {
20 | public boolean activated;
21 | public int amount;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Type/SINE_WALL.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Type;
2 |
3 | import ru.m210projects.Build.FileHandle.BufferResource;
4 | import ru.m210projects.Build.FileHandle.Resource;
5 |
6 | public class SINE_WALL {
7 | public int orig_xy, range;
8 | public short wall, sintable_ndx, speed_shift, type;
9 |
10 | public void reset() {
11 | orig_xy = -1;
12 | range = -1;
13 | wall = -1;
14 | sintable_ndx = -1;
15 | speed_shift = -1;
16 | type = -1;
17 | }
18 |
19 | public void save(BufferResource fil) {
20 | fil.writeInt(orig_xy);
21 | fil.writeInt(range);
22 | fil.writeShort(wall);
23 | fil.writeShort(sintable_ndx);
24 | fil.writeShort(speed_shift);
25 | fil.writeShort(type);
26 | }
27 |
28 | public void load(Resource res) {
29 | orig_xy = res.readInt();
30 | range = res.readInt();
31 | wall = res.readShort();
32 | sintable_ndx = res.readShort();
33 | speed_shift = res.readShort();
34 | type = res.readShort();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/QAVCALLBACKFUNC.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public interface QAVCALLBACKFUNC {
20 | void run(int triggerId, Object data);
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Render/IOverheadMapSettings.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Build.Render;
2 |
3 | public interface IOverheadMapSettings {
4 |
5 | enum MapView {
6 | Polygons, Lines
7 | }
8 |
9 | boolean isFullMap();
10 |
11 | boolean isScrollMode();
12 |
13 | int getViewPlayer();
14 |
15 | boolean isShowSprites(MapView view);
16 |
17 | boolean isShowFloorSprites();
18 |
19 | boolean isShowRedWalls();
20 |
21 | boolean isShowAllPlayers();
22 |
23 | boolean isSpriteVisible(MapView view, int index);
24 |
25 | boolean isWallVisible(int w, int ses);
26 |
27 | int getWallColor(int w, int sec);
28 |
29 | int getWallX(int w);
30 |
31 | int getWallY(int w);
32 |
33 | int getSpriteColor(int s);
34 |
35 | int getSpriteX(int spr);
36 |
37 | int getSpriteY(int spr);
38 |
39 | int getSpritePicnum(int spr);
40 |
41 | int getPlayerSprite(int player);
42 |
43 | int getPlayerPicnum(int player);
44 |
45 | int getPlayerZoom(int player, int czoom);
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Types/BuildPos.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Types;
18 |
19 | public class BuildPos {
20 |
21 | public int x, y, z;
22 | public short ang, sectnum;
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Types/Neartag.java:
--------------------------------------------------------------------------------
1 | //This file is part of BuildGDX.
2 | //Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | //BuildGDX is free software: you can redistribute it and/or modify
5 | //it under the terms of the GNU General Public License as published by
6 | //the Free Software Foundation, either version 3 of the License, or
7 | //(at your option) any later version.
8 | //
9 | //BuildGDX is distributed in the hope that it will be useful,
10 | //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | //GNU General Public License for more details.
13 | //
14 | //You should have received a copy of the GNU General Public License
15 | //along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Types;
18 |
19 | public class Neartag {
20 | public int taghitdist;
21 | public short tagsector, tagwall, tagsprite;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Tekwar/Types/Guntype.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Tekwar.Types;
2 |
3 | public class Guntype {
4 | public short pic; // gun frame when carrying weapon
5 | public short firepic; // 1st gun frame when firing weapon
6 | public short endfirepic; // last gun frame when firing weapon
7 | public byte rep; // 1=automatic weapon, 0=semi-automatic
8 | public byte[] action; // 8 frame action bytes - 1=shootgun()
9 | public byte pos; // position on screen 0=center, 1=left, 2=right
10 | public short tics;
11 |
12 | public Guntype(int pic, int firepic, int endfirepic, int rep, byte[] action, int pos, int tics) {
13 | this.pic = (short) pic;
14 | this.firepic = (short) firepic;
15 | this.endfirepic = (short) endfirepic;
16 | this.rep = (byte) rep;
17 | this.action = action;
18 | this.pos = (byte) pos;
19 | this.tics = (short) tics;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Pattern/MenuItems/MenuProc.java:
--------------------------------------------------------------------------------
1 | //This file is part of BuildGDX.
2 | //Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | //BuildGDX is free software: you can redistribute it and/or modify
5 | //it under the terms of the GNU General Public License as published by
6 | //the Free Software Foundation, either version 3 of the License, or
7 | //(at your option) any later version.
8 | //
9 | //BuildGDX is distributed in the hope that it will be useful,
10 | //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | //GNU General Public License for more details.
13 | //
14 | //You should have received a copy of the GNU General Public License
15 | //along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Pattern.MenuItems;
18 |
19 | public interface MenuProc {
20 | void run(MenuHandler handler, MenuItem pItem);
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Redneck/Types/Animwalltype.java:
--------------------------------------------------------------------------------
1 | // This file is part of RedneckGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // RedneckGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // RedneckGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with RedneckGDX. If not, see .
16 |
17 | package ru.m210projects.Redneck.Types;
18 |
19 | public class Animwalltype {
20 | public short wallnum;
21 | public int tag;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/QUOTE.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class QUOTE {
20 | public String messageText;
21 | public int messageTime;
22 | public int pal;
23 | }
24 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Powerslave/Type/PlayerSave.java:
--------------------------------------------------------------------------------
1 | // This file is part of PowerslaveGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // PowerslaveGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // PowerslaveGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with PowerslaveGDX. If not, see .
16 |
17 | package ru.m210projects.Powerslave.Type;
18 |
19 | public class PlayerSave {
20 | public int x, y, z;
21 | public short sect, ang;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Enemies/Personality.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Enemies;
2 |
3 | import ru.m210projects.Wang.Type.Saveable;
4 |
5 | public class Personality extends Saveable {
6 |
7 | public final Decision[] Battle;
8 | public final Decision[] Offense;
9 | public final Decision[] Broadcast;
10 | public final Decision[] Surprised;
11 | public final Decision[] Evasive;
12 | public final Decision[] LostTarget;
13 | public final Decision[] CloseRange;
14 | public final Decision[] TouchTarget;
15 |
16 | public Personality(Decision[] Battle, Decision[] Offense, Decision[] Broadcast, Decision[] Surprised, Decision[] Evasive,
17 | Decision[] LostTarget, Decision[] CloseRange, Decision[] TouchTarget) {
18 | this.Battle = Battle;
19 | this.Offense = Offense;
20 | this.Broadcast = Broadcast;
21 | this.Surprised = Surprised;
22 | this.Evasive = Evasive;
23 | this.LostTarget = LostTarget;
24 | this.CloseRange = CloseRange;
25 | this.TouchTarget = TouchTarget;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Witchaven/Types/EpisodeInfo.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Witchaven.Types;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 |
6 | public class EpisodeInfo {
7 |
8 | public String Title;
9 | public String path;
10 | public boolean packed;
11 | public List gMapInfo;
12 |
13 | public EpisodeInfo() {
14 | gMapInfo = new ArrayList();
15 | }
16 |
17 | public EpisodeInfo(String title) {
18 | this();
19 | this.Title = title;
20 | }
21 |
22 | public void clear()
23 | {
24 | Title = null;
25 | path = null;
26 | packed = false;
27 | gMapInfo.clear();
28 | }
29 |
30 | public int maps() {
31 | return gMapInfo.size();
32 | }
33 |
34 | public String getMapName(int num)
35 | {
36 | MapInfo map = getMap(num);
37 | if(map != null)
38 | return map.title;
39 |
40 | return null;
41 | }
42 |
43 | public MapInfo getMap(int num)
44 | {
45 | return (num - 1) < gMapInfo.size() ? gMapInfo.get(num - 1) : null;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Render/ModelHandle/MDModel/MD3/MD3Shader.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Render.ModelHandle.MDModel.MD3;
18 |
19 | public class MD3Shader {
20 | String name;
21 | int index;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Powerslave/Type/FuncProc.java:
--------------------------------------------------------------------------------
1 | // This file is part of PowerslaveGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // PowerslaveGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // PowerslaveGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with PowerslaveGDX. If not, see .
16 | package ru.m210projects.Powerslave.Type;
17 |
18 | public interface FuncProc {
19 |
20 | public void run(int a1, int a2, int RunPtr);
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Render/ModelHandle/MDModel/MD3/MD3Vertice.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Render.ModelHandle.MDModel.MD3;
18 |
19 | public class MD3Vertice {
20 | public short x, y, z, nlat, nlng;
21 | }
22 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Types/Hitscan.java:
--------------------------------------------------------------------------------
1 | //This file is part of BuildGDX.
2 | //Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | //BuildGDX is free software: you can redistribute it and/or modify
5 | //it under the terms of the GNU General Public License as published by
6 | //the Free Software Foundation, either version 3 of the License, or
7 | //(at your option) any later version.
8 | //
9 | //BuildGDX is distributed in the hope that it will be useful,
10 | //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | //GNU General Public License for more details.
13 | //
14 | //You should have received a copy of the GNU General Public License
15 | //along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Types;
18 |
19 | public class Hitscan {
20 | public int hitx = -1, hity = -1, hitz = -1;
21 | public short hitsect = -1, hitwall = -1, hitsprite = -1;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Duke3D/Types/SoundOwner.java:
--------------------------------------------------------------------------------
1 | // This file is part of DukeGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // DukeGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // DukeGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with DukeGDX. If not, see .
16 |
17 | package ru.m210projects.Duke3D.Types;
18 |
19 | import ru.m210projects.Build.Audio.Source;
20 |
21 | public class SoundOwner {
22 | public int i;
23 | public Source voice;
24 | }
25 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Menus/MenuJoystick.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Menus;
2 |
3 | import ru.m210projects.Wang.Main;
4 | import ru.m210projects.Build.Input.Keymap;
5 | import ru.m210projects.Build.Pattern.BuildGame;
6 | import ru.m210projects.Build.Pattern.MenuItems.MenuTitle;
7 |
8 | public class MenuJoystick extends ru.m210projects.Build.Pattern.CommonMenus.MenuJoystick {
9 |
10 | public MenuJoystick(Main app) {
11 | super(app, 35, 50, 250, 10, 15, app.getFont(1), 14);
12 |
13 | mList.menupal = 19;
14 |
15 | mJoyKey.align = 0;
16 | mJoyKey.x = 35;
17 |
18 | mJoyDevices.listFont = app.getFont(0);
19 | mList.pal_left = mList.pal_right = 16;
20 | mText.font = mText2.font = app.getFont(1);
21 | mText.y -= 10;
22 | mText2.y -= 10;
23 | }
24 |
25 | @Override
26 | public MenuTitle getTitle(BuildGame app, String text) {
27 | return new WangTitle(text);
28 | }
29 |
30 | @Override
31 | public String keyNames(int keycode) {
32 | return Keymap.toString(keycode);
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Render/ModelHandle/MDModel/MD2/MD2Frame.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Render.ModelHandle.MDModel.MD2;
18 |
19 | public class MD2Frame {
20 | public float[][] vertices;
21 | public String name;
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/HANDANIM.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | import ru.m210projects.Blood.QAV;
20 |
21 | public class HANDANIM {
22 | public QAV pQAV;
23 | public int duration;
24 | public int clock;
25 | }
26 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Redneck/Types/SoundOwner.java:
--------------------------------------------------------------------------------
1 | // This file is part of RedneckGDX
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // RedneckGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // RedneckGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with RedneckGDX. If not, see .
16 |
17 | package ru.m210projects.Redneck.Types;
18 |
19 | import ru.m210projects.Build.Audio.Source;
20 |
21 | public class SoundOwner {
22 | public int i;
23 | public Source voice;
24 | }
25 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/SOFTLoopPoints.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright LWJGL. All rights reserved.
3 | * License terms: https://www.lwjgl.org/license
4 | * MACHINE GENERATED FILE, DO NOT EDIT
5 | */
6 | package ru.m210projects.Build.desktop.audio.nopenal;
7 |
8 | /**
9 | * Native bindings to the SOFT_loop_points extension.
10 | *
11 | *
This extension allows an application to specify the offsets at which a buffer loops. Unextended OpenAL only allows for a source to loop a whole buffer,
12 | * or all buffers of a queue, which is not desirable for sounds that may want a lead-in or lead-out along with the looping portion.
13 | */
14 | public final class SOFTLoopPoints {
15 |
16 | /** Accepted by the {@code paramName} parameter of {@link AL11#alBufferiv Bufferiv} and {@link AL11#alGetBufferiv GetBufferiv}. */
17 | public static final int AL_LOOP_POINTS_SOFT = 0x2015;
18 |
19 | private SOFTLoopPoints() {}
20 |
21 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Net/ISocket.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Net;
18 |
19 | public interface ISocket {
20 | Object recvfrom(byte[] dabuf, int bufsiz);
21 | void sendto(Object sockaddr, byte[] dabuf, int bufsiz);
22 | void dispose();
23 | }
24 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/EXTDefaultFilterOrder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright LWJGL. All rights reserved.
3 | * License terms: https://www.lwjgl.org/license
4 | * MACHINE GENERATED FILE, DO NOT EDIT
5 | */
6 | package ru.m210projects.Build.desktop.audio.nopenal;
7 |
8 | /**
9 | * Native bindings to the {@code ALC_EXT_DEFAULT_FILTER_ORDER} extension.
10 | *
11 | *
This extension allows the default filter order (i.e. slope) to be selected at context creation time. Attibute {@link #ALC_DEFAULT_FILTER_ORDER DEFAULT_FILTER_ORDER} can be used with a
12 | * value of 1 (for -6dB/oct) or 2 (for -12dB/oct).
13 | *
14 | *
{@link #ALC_DEFAULT_FILTER_ORDER DEFAULT_FILTER_ORDER} can also be used with {@link ALC10#alcGetIntegerv GetIntegerv} to find out the current default filter order.
15 | */
16 | public final class EXTDefaultFilterOrder {
17 |
18 | /** {@code ALC_EXT_DEFAULT_FILTER_ORDER} tokens. */
19 | public static final int ALC_DEFAULT_FILTER_ORDER = 0x1100;
20 |
21 | private EXTDefaultFilterOrder() {}
22 |
23 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/POSTPONE.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class POSTPONE {
20 | public short nSprite;
21 | public short nStatus;
22 |
23 | public void clear() {
24 | nSprite = 0;
25 | nStatus = 0;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/ALCcontext.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Build.desktop.audio.nopenal;
2 |
3 | import java.nio.IntBuffer;
4 |
5 | import org.lwjgl.BufferUtils;
6 |
7 | import com.sun.jna.PointerType;
8 |
9 | public class ALCcontext extends PointerType {
10 |
11 | /**
12 | * Creates an attribute list in a ByteBuffer
13 | * @param contextFrequency Frequency to add
14 | * @param contextRefresh Refresh rate to add
15 | * @param contextSynchronized Whether to synchronize the context
16 | * @return attribute list
17 | */
18 | static IntBuffer createAttributeList(int contextFrequency, int contextRefresh, int contextSynchronized) {
19 | IntBuffer attribList = BufferUtils.createIntBuffer(7);
20 |
21 | attribList.put(ALC10.ALC_FREQUENCY);
22 | attribList.put(contextFrequency);
23 | attribList.put(ALC10.ALC_REFRESH);
24 | attribList.put(contextRefresh);
25 | attribList.put(ALC10.ALC_SYNC);
26 | attribList.put(contextSynchronized);
27 | attribList.put(0); //terminating int
28 |
29 | return attribList;
30 | }
31 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Duke3D/Types/Sample.java:
--------------------------------------------------------------------------------
1 | // This file is part of DukeGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // DukeGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // DukeGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with DukeGDX. If not, see .
16 |
17 | package ru.m210projects.Duke3D.Types;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | public class Sample {
22 | public ByteBuffer ptr;
23 | public int lock;
24 | public int length, num;
25 |
26 | public int bits, rate;
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Tekwar/Menus/MenuAbort.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Tekwar.Menus;
2 |
3 | import ru.m210projects.Build.Pattern.BuildGame;
4 | import ru.m210projects.Build.Pattern.MenuItems.BuildMenu;
5 | import ru.m210projects.Build.Pattern.MenuItems.MenuHandler;
6 | import ru.m210projects.Build.Pattern.MenuItems.MenuText;
7 | import ru.m210projects.Build.Pattern.MenuItems.MenuVariants;
8 |
9 | import static ru.m210projects.Tekwar.Tekmap.*;
10 |
11 | public class MenuAbort extends BuildMenu {
12 |
13 | public MenuAbort(final BuildGame game)
14 | {
15 | MenuText QuitQuestion = new MenuText("Abort mission?", game.getFont(0), 160, 50, 1);
16 | QuitQuestion.pal = 3;
17 | MenuVariants QuitVariants = new MenuVariants(game.pEngine, "[Y/N]", game.getFont(0), 160, 60) {
18 | @Override
19 | public void positive(MenuHandler menu) {
20 | gameover = 1;
21 | game.pInput.ctrlResetKeyStatus();
22 | menu.mClose();
23 | }
24 | };
25 | QuitVariants.pal = 3;
26 |
27 | addItem(QuitQuestion, false);
28 | addItem(QuitVariants, true);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Witchaven/Factory/WHNetwork.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Witchaven.Factory;
2 |
3 | import ru.m210projects.Build.Pattern.BuildGame;
4 | import ru.m210projects.Build.Pattern.BuildNet;
5 | import ru.m210projects.Witchaven.Types.Input;
6 |
7 | public class WHNetwork extends BuildNet {
8 |
9 | public WHNetwork(BuildGame game) {
10 | super(game);
11 | }
12 |
13 | @Override
14 | public NetInput newInstance() {
15 | return new Input();
16 | }
17 |
18 | @Override
19 | public int GetPackets(byte[] data, int ptr, int len, int nPlayer) {
20 | // TODO Auto-generated method stub
21 | return 0;
22 | }
23 |
24 | @Override
25 | public void UpdatePrediction(NetInput input) {
26 | // TODO Auto-generated method stub
27 |
28 | }
29 |
30 | @Override
31 | public void CalcChecksum() {
32 | // TODO Auto-generated method stub
33 |
34 | }
35 |
36 | @Override
37 | public void CorrectPrediction() {
38 | // TODO Auto-generated method stub
39 |
40 | }
41 |
42 | @Override
43 | public void ComputerInput(int i) {
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Render/ModelHandle/MDModel/MD2/MD2Triangle.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Render.ModelHandle.MDModel.MD2;
18 |
19 | public class MD2Triangle {
20 | public short[] vertices = new short[3];
21 | public short[] texCoords = new short[3];
22 | }
23 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Menus/MenuMenuKeyboard.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Menus;
2 |
3 | import ru.m210projects.Wang.Main;
4 |
5 | import static com.badlogic.gdx.Input.Keys.BACKSPACE;
6 |
7 | import ru.m210projects.Build.Input.Keymap;
8 | import ru.m210projects.Build.Pattern.BuildGame;
9 | import ru.m210projects.Build.Pattern.CommonMenus.MenuKeyboard;
10 | import ru.m210projects.Build.Pattern.MenuItems.MenuTitle;
11 |
12 | public class MenuMenuKeyboard extends MenuKeyboard {
13 |
14 | public MenuMenuKeyboard(Main app) {
15 | super(app, 35, 40, 250, 14, app.getFont(1));
16 |
17 | mList.pal_left = 20;
18 | mList.pal_right = 16;
19 |
20 | mText.y -= 10;
21 | mText.pal = 16;
22 | mText2.y -= 10;
23 | mText2.pal = 16;
24 | }
25 |
26 | @Override
27 | public MenuTitle getTitle(BuildGame app, String text) {
28 | return new WangTitle(text);
29 | }
30 |
31 | @Override
32 | public String keyNames(int keycode) {
33 |
34 | if(keycode == BACKSPACE)
35 | return "BkSpace";
36 |
37 | return Keymap.toString(keycode);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Audio/SoundData.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2020 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Audio;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | public class SoundData {
22 |
23 | public int rate;
24 | public int channels;
25 | public int bits;
26 | public ByteBuffer data;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Duke3D/Types/LumpInfo.java:
--------------------------------------------------------------------------------
1 | // This file is part of DukeGDX.
2 | // Copyright (C) 2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // DukeGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // DukeGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with DukeGDX. If not, see .
16 |
17 | package ru.m210projects.Duke3D.Types;
18 |
19 | import ru.m210projects.Build.FileHandle.Resource;
20 |
21 | public class LumpInfo {
22 |
23 | public String name;
24 | public Resource handle;
25 | public int position, size;
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/LOADITEM.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class LOADITEM {
20 | public int index;
21 | public String name;
22 | public LOADITEM(int index, String name ) {
23 | this.name = name;
24 | this.index = index;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Redneck/Types/Sample.java:
--------------------------------------------------------------------------------
1 | // This file is part of RedneckGDX
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // RedneckGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // RedneckGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with RedneckGDX. If not, see .
16 |
17 | package ru.m210projects.Redneck.Types;
18 |
19 | import java.nio.ByteBuffer;
20 |
21 | public class Sample {
22 | public ByteBuffer ptr;
23 | public int lock;
24 | public int length, num;
25 |
26 | public int bits, rate;
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/ARMORITEMDATA.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class ARMORITEMDATA {
20 | public int[] count;
21 | public int[] max;
22 |
23 | public ARMORITEMDATA(int[] count, int[] max) {
24 | this.count = count;
25 | this.max = max;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Redneck/Types/LumpInfo.java:
--------------------------------------------------------------------------------
1 | // This file is part of RedneckGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // RedneckGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // RedneckGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with RedneckGDX. If not, see .
16 |
17 | package ru.m210projects.Redneck.Types;
18 |
19 | import ru.m210projects.Build.FileHandle.Resource;
20 |
21 | public class LumpInfo {
22 |
23 | public String name;
24 | public int position, size;
25 | public Resource handle;
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/desktop/audio/nopenal/EXTMCFormats.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright LWJGL. All rights reserved.
3 | * License terms: https://www.lwjgl.org/license
4 | * MACHINE GENERATED FILE, DO NOT EDIT
5 | */
6 | package ru.m210projects.Build.desktop.audio.nopenal;
7 |
8 | /** Native bindings to the {@code AL_EXT_MCFORMATS} extension. */
9 | public final class EXTMCFormats {
10 |
11 | /** Buffer formats. */
12 | public static final int
13 | AL_FORMAT_QUAD8 = 0x1204,
14 | AL_FORMAT_QUAD16 = 0x1205,
15 | AL_FORMAT_QUAD32 = 0x1206,
16 | AL_FORMAT_REAR8 = 0x1207,
17 | AL_FORMAT_REAR16 = 0x1208,
18 | AL_FORMAT_REAR32 = 0x1209,
19 | AL_FORMAT_51CHN8 = 0x120A,
20 | AL_FORMAT_51CHN16 = 0x120B,
21 | AL_FORMAT_51CHN32 = 0x120C,
22 | AL_FORMAT_61CHN8 = 0x120D,
23 | AL_FORMAT_61CHN16 = 0x120E,
24 | AL_FORMAT_61CHN32 = 0x120F,
25 | AL_FORMAT_71CHN8 = 0x1210,
26 | AL_FORMAT_71CHN16 = 0x1211,
27 | AL_FORMAT_71CHN32 = 0x1212;
28 |
29 | private EXTMCFormats() {}
30 |
31 | }
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/AMMOINFO.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class AMMOINFO {
20 | public int max;
21 | public int vectorType;
22 |
23 | public AMMOINFO(int max, int vectorType, int unk) {
24 | this.max = max;
25 | this.vectorType = vectorType;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/SPRITEHIT.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class SPRITEHIT {
20 | public int moveHit;
21 | public int ceilHit;
22 | public int floorHit;
23 |
24 | public void clear() {
25 | moveHit = 0;
26 | ceilHit = 0;
27 | floorHit = 0;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Blood/Types/WEAPONDATA.java:
--------------------------------------------------------------------------------
1 | // This file is part of BloodGDX.
2 | // Copyright (C) 2017-2019 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BloodGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BloodGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BloodGDX. If not, see .
16 |
17 | package ru.m210projects.Blood.Types;
18 |
19 | public class WEAPONDATA {
20 | public int update;
21 | public int ammoType;
22 |
23 | public WEAPONDATA(int update, int ammoType) {
24 | this.update = update;
25 | this.ammoType = ammoType;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Menus/WangEpisodeButton.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Menus;
2 |
3 | import ru.m210projects.Build.Pattern.BuildFont.TextAlign;
4 | import ru.m210projects.Build.Pattern.MenuItems.MenuButton;
5 | import ru.m210projects.Build.Pattern.MenuItems.MenuHandler;
6 | import ru.m210projects.Build.Pattern.MenuItems.MenuProc;
7 | import ru.m210projects.Wang.Main;
8 | import ru.m210projects.Wang.Type.GameInfo;
9 |
10 | public class WangEpisodeButton extends MenuButton {
11 |
12 | private Main app;
13 | public GameInfo game;
14 | private String description;
15 |
16 | public WangEpisodeButton(Main app, int x, int y, GameInfo info, MenuProc newEpProc, int epnum)
17 | {
18 | super(info.episode[epnum].Title, app.getFont(2), x, y, 320, 0, 0, null, -1, newEpProc, epnum);
19 |
20 | this.app = app;
21 | this.description = info.episode[epnum].Description;
22 | game = info;
23 | }
24 |
25 | @Override
26 | public void draw(MenuHandler handler) {
27 | super.draw(handler);
28 |
29 | app.getFont(1).drawText(x, y + 17, description, 0, 4, TextAlign.Left, 2, false);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Build/Net/UDPServer.java:
--------------------------------------------------------------------------------
1 | // This file is part of BuildGDX.
2 | // Copyright (C) 2017-2018 Alexander Makarov-[M210] (m210-2007@mail.ru)
3 | //
4 | // BuildGDX is free software: you can redistribute it and/or modify
5 | // it under the terms of the GNU General Public License as published by
6 | // the Free Software Foundation, either version 3 of the License, or
7 | // (at your option) any later version.
8 | //
9 | // BuildGDX is distributed in the hope that it will be useful,
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | // GNU General Public License for more details.
13 | //
14 | // You should have received a copy of the GNU General Public License
15 | // along with BuildGDX. If not, see .
16 |
17 | package ru.m210projects.Build.Net;
18 |
19 | import java.net.InetSocketAddress;
20 |
21 | public class UDPServer extends UDPSocket {
22 | public UDPServer(int port) throws Throwable {
23 | super(port);
24 | sock.bind(new InetSocketAddress(port));
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Tekwar/Factory/TekNetwork.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Tekwar.Factory;
2 |
3 | import ru.m210projects.Build.Pattern.BuildGame;
4 | import ru.m210projects.Build.Pattern.BuildNet;
5 | import ru.m210projects.Tekwar.Types.Input;
6 |
7 | public class TekNetwork extends BuildNet {
8 |
9 | public TekNetwork(BuildGame game) {
10 | super(game);
11 | }
12 |
13 | @Override
14 | public NetInput newInstance() {
15 | return new Input();
16 | }
17 |
18 | @Override
19 | public int GetPackets(byte[] data, int ptr, int len, int nPlayer) {
20 | // TODO Auto-generated method stub
21 | return 0;
22 | }
23 |
24 | @Override
25 | public void UpdatePrediction(NetInput input) {
26 | // TODO Auto-generated method stub
27 |
28 | }
29 |
30 | @Override
31 | public void CalcChecksum() {
32 | // TODO Auto-generated method stub
33 |
34 | }
35 |
36 | @Override
37 | public void CorrectPrediction() {
38 | // TODO Auto-generated method stub
39 |
40 | }
41 |
42 | @Override
43 | public void ComputerInput(int i) {
44 | // TODO Auto-generated method stub
45 |
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/src/ru/m210projects/Wang/Type/Break_Info.java:
--------------------------------------------------------------------------------
1 | package ru.m210projects.Wang.Type;
2 |
3 | public class Break_Info implements Comparable