-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uploaded m6 August 2022 files with compiled jar.
- Loading branch information
Showing
250 changed files
with
22,398 additions
and
3,830 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
....metadata/.plugins/org.eclipse.core.resources/.history/0/000405968f23001d122adf533fa38e85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
DefiantCE Developer's Notes | ||
|
||
Gamrboy4life guide video leftoff: | ||
https://youtu.be/mHxyZUVqa2Q?t=1221 | ||
|
||
24 August 2022, PlainCube Bastion | ||
https://github.com/plaincube | ||
|
||
Build status: Unpublished | ||
|
||
DefiantCE m6, (C) Copyright August 2022 PlainCube Bastion, (C) Copyright June 2022 Bastion Gaming (Formerly) |
5 changes: 5 additions & 0 deletions
5
...metadata/.plugins/org.eclipse.core.resources/.history/10/c071a6555d21001d108ea47579fa26ab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package bastion.defiantce.command; | ||
|
||
public abstract class Command { | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
...metadata/.plugins/org.eclipse.core.resources/.history/11/70825de36720001d1c4d8ebd46b0e8a5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package bastion.defiantce.event; | ||
|
||
public class Event { | ||
|
||
public boolean cancelled; | ||
public EventType type; | ||
public EventDirection direction; | ||
|
||
public boolean isCancelled() { | ||
return cancelled; | ||
} | ||
|
||
public void setCancelled(boolean cancelled) { | ||
this.cancelled = cancelled; | ||
} | ||
|
||
public EventType getType() { | ||
return type; | ||
} | ||
|
||
public void setType(EventType type) { | ||
this.type = type; | ||
} | ||
|
||
public EventDirection getDirection() { | ||
return direction; | ||
} | ||
|
||
public void setDirection(EventDirection direction) { | ||
this.direction = direction; | ||
} | ||
|
||
public boolean isPre() { | ||
if(type == null) { | ||
return false; | ||
return EventType.PRE; | ||
} | ||
} | ||
|
||
} |
File renamed without changes.
67 changes: 67 additions & 0 deletions
67
...metadata/.plugins/org.eclipse.core.resources/.history/12/b067eb067523001d1e1fe12ae634152c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package bastion.defiantce; | ||
|
||
import java.util.concurrent.CopyOnWriteArrayList; | ||
|
||
import org.lwjgl.opengl.Display; | ||
|
||
import bastion.defiantce.command.CommandManager; | ||
import bastion.defiantce.event.Event; | ||
import bastion.defiantce.event.events.EventChat; | ||
import bastion.defiantce.extensions.DiscordRP; | ||
import bastion.defiantce.module.Module; | ||
import bastion.defiantce.module.ModuleManager; | ||
import de.Hero.clickgui.ClickGUI; | ||
import de.Hero.settings.SettingsManager; | ||
|
||
public class Defiant { | ||
|
||
public static Defiant instance = new Defiant(); | ||
|
||
public static String name = "DefiantCE", version = "2022 m6", creator = "Cube"; | ||
|
||
public static ModuleManager moduleManager; | ||
|
||
public static SettingsManager settingsManager; | ||
|
||
public static ClickGUI clickGUI; | ||
|
||
public static CommandManager cmdManager; | ||
|
||
public static DiscordRP discordRP = new DiscordRP(); | ||
|
||
public static void startClient() { | ||
|
||
settingsManager = new SettingsManager(); | ||
|
||
moduleManager = new ModuleManager(); | ||
|
||
clickGUI = new ClickGUI(); | ||
|
||
cmdManager = new CommandManager(); | ||
|
||
discordRP.start(); | ||
|
||
System.out.println("DefiantCE has started (main menu loaded)."); | ||
|
||
Display.setTitle(name + " " + version); | ||
|
||
} | ||
|
||
public static void onEvent(Event e) { | ||
if(e instanceof EventChat) { | ||
|
||
} | ||
for(Module m : modules) { | ||
if(!m.toggled) | ||
continue; | ||
m.onEvent(e); | ||
} | ||
} | ||
|
||
public static DiscordRP getDiscordRP() { | ||
return discordRP; | ||
} | ||
|
||
public static CopyOnWriteArrayList<Module> modules = new CopyOnWriteArrayList<Module>(); | ||
|
||
} |
29 changes: 0 additions & 29 deletions
29
...metadata/.plugins/org.eclipse.core.resources/.history/13/309c9e39181d001d1323852301c2b112
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...metadata/.plugins/org.eclipse.core.resources/.history/16/e0de32439523001d122adf533fa38e85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package bastion.defiantce.command.commands; | ||
|
||
import org.lwjgl.input.Keyboard; | ||
|
||
import bastion.defiantce.Defiant; | ||
import bastion.defiantce.command.Command; | ||
import bastion.defiantce.module.Module; | ||
|
||
public class Bind extends Command { | ||
|
||
public Bind() { | ||
super("Bind", "Binds a module to a key on your keyboard.", "bind <module> <key> | bind clear", "b"); | ||
} | ||
|
||
@Override | ||
public void onCommand(String[] args, String command) { | ||
if(args.length == 2) { | ||
String moduleName = args[0]; | ||
String keyName = args[1]; | ||
|
||
boolean foundModule = false; | ||
|
||
for(Module module : Defiant.instance.moduleManager.getModules()) { | ||
if(module.name.equalsIgnoreCase(moduleName)) { | ||
module.setKey(Keyboard.getKeyIndex(keyName.toUpperCase())); | ||
|
||
Defiant.instance.moduleManager.addChatMessage(String.format("Bound %s to %s" + "!", module.name, Keyboard.getKeyName(module.getKey()))); | ||
foundModule = true; | ||
break; | ||
} | ||
} | ||
|
||
if(!foundModule) { | ||
Defiant.instance.moduleManager.addChatMessage("Module not found!"); | ||
} | ||
|
||
} | ||
|
||
if(args.length == 1) { | ||
if(args[0].equalsIgnoreCase("clear")) { | ||
for(Module modules : Defiant.instance.moduleManager.getModules()) { | ||
bastion.defiantce.module.ModuleManager.module.setKey(Keyboard.KEY_NONE); | ||
} | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...metadata/.plugins/org.eclipse.core.resources/.history/18/f0c0e39d6820001d1c4d8ebd46b0e8a5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package bastion.defiantce.event.events; | ||
|
||
import bastion.defiantce.event.Event; | ||
|
||
public class EventChat extends Event<EventChat> { | ||
|
||
} |
58 changes: 58 additions & 0 deletions
58
...metadata/.plugins/org.eclipse.core.resources/.history/1a/00d9e9b65c21001d108ea47579fa26ab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package bastion.defiantce; | ||
|
||
import org.lwjgl.opengl.Display; | ||
|
||
import bastion.defiantce.event.Event; | ||
import bastion.defiantce.event.events.EventChat; | ||
import bastion.defiantce.extensions.DiscordRP; | ||
import bastion.defiantce.module.ModuleManager; | ||
import de.Hero.clickgui.ClickGUI; | ||
import de.Hero.settings.SettingsManager; | ||
import bastion.defiantce.module.Module; | ||
|
||
public class Defiant { | ||
|
||
public static Defiant instance = new Defiant(); | ||
|
||
public static String name = "DefiantCE", version = "2022 m6", creator = "Cube"; | ||
|
||
public static ModuleManager moduleManager; | ||
|
||
public static SettingsManager settingsManager; | ||
|
||
public static ClickGUI clickGUI; | ||
|
||
public static DiscordRP discordRP = new DiscordRP(); | ||
|
||
public static void startClient() { | ||
|
||
settingsManager = new SettingsManager(); | ||
|
||
moduleManager = new ModuleManager(); | ||
|
||
clickGUI = new ClickGUI(); | ||
|
||
discordRP.start(); | ||
|
||
System.out.println("DCE: DefiantCE has started (main menu loaded)."); | ||
|
||
Display.setTitle(name + " " + version); | ||
|
||
} | ||
|
||
public static void onEvent(Event e) { | ||
if(e instanceof EventChat) { | ||
|
||
} | ||
for(Module m : modules) { | ||
if(!m.toggled) | ||
continue; | ||
m.onEvent(e); | ||
} | ||
} | ||
|
||
public static DiscordRP getDiscordRP() { | ||
return discordRP; | ||
} | ||
|
||
} |
2 changes: 2 additions & 0 deletions
2
...metadata/.plugins/org.eclipse.core.resources/.history/1a/40c06ab40122001d1d39cd76af2e04dc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Gamrboy4life guide video leftoff: | ||
https://youtu.be/mHxyZUVqa2Q?t=872 |
43 changes: 43 additions & 0 deletions
43
...metadata/.plugins/org.eclipse.core.resources/.history/1f/10df1a7afc21001d1d39cd76af2e04dc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package bastion.defiantce.command; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import bastion.defiantce.event.events.EventChat; | ||
|
||
public class CommandManager { | ||
|
||
public static List<Command> commands = new ArrayList<Command>(); | ||
public String prefix = "//.."; | ||
|
||
public CommandManager() { | ||
setup(); | ||
} | ||
|
||
public void setup() { | ||
|
||
//Commands | ||
|
||
|
||
} | ||
|
||
public static List<Command> getCommands(){ | ||
return commands; | ||
} | ||
|
||
public void handleChat(EventChat event) { | ||
String message = event.getMessage(); | ||
|
||
if(!message.startsWith(prefix)) | ||
return; | ||
|
||
event.setCancelled(true); | ||
|
||
boolean foundCommand = false; | ||
|
||
if(message.split(" ").length > 0) { | ||
String commandName = message.split(" ")[0]; | ||
} | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
...metadata/.plugins/org.eclipse.core.resources/.history/1f/40e9cc965d21001d108ea47579fa26ab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package bastion.defiantce.command; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public abstract class Command { | ||
|
||
public String name, description, syntax; | ||
public List<String> aliases = new ArrayList<String>(); | ||
|
||
public Command(String name, String description, String syntax, List... aliases) { | ||
super(); | ||
this.name = name; | ||
this.description = description; | ||
this.syntax = syntax; | ||
this.aliases = Arrays.asList(aliases); | ||
} | ||
|
||
} |
Oops, something went wrong.