-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Manifest-Version: 1.0 | ||
Main-Class: net.charkosoff.Main | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.charkosoff; | ||
|
||
import net.charkosoff.vimeworld.Checkly; | ||
|
||
public class Main { | ||
|
||
public static void main(String[] args) { | ||
new Checkly(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package net.charkosoff.utils; | ||
|
||
import net.charkosoff.vimeworld.Boss; | ||
|
||
import java.text.SimpleDateFormat; | ||
import java.util.Date; | ||
|
||
public class Logger { | ||
public static final String RESET = "\u001B[0m"; | ||
public static final String BLACK = "\u001B[30m"; | ||
public static final String RED = "\u001B[31m"; | ||
public static final String GREEN = "\u001B[32m"; | ||
public static final String YELLOW = "\u001B[33m"; | ||
public static final String BLUE = "\u001B[34m"; | ||
public static final String PURPLE = "\u001B[35m"; | ||
public static final String CYAN = "\u001B[36m"; | ||
public static final String WHITE = "\u001B[37m"; | ||
|
||
public void successMessage(String message){ | ||
System.out.println(BLUE + message + RESET); | ||
} | ||
|
||
public void infoMessage(String message){ | ||
System.out.println(PURPLE + message + RESET); | ||
} | ||
|
||
public void errorMessage(String message){ | ||
System.out.println(RED + message + RESET); | ||
} | ||
|
||
public void killedMessage(Boss boss){ | ||
SimpleDateFormat formatted = new java.text.SimpleDateFormat("HH:mm:ss"); | ||
String formattedDate = formatted.format(new Date(boss.getToRespawn())); | ||
System.out.println("\n" + CYAN + "| Был убит босс: " + boss.getName() + CYAN + ". Следующий спавн: " + CYAN + formattedDate + RESET); | ||
} | ||
|
||
public void bossSpawnedMessage(Boss boss){ | ||
System.out.println("\n" + PURPLE + "| Босс " + boss.getName() + PURPLE + " был заспавнен! Вперед на " + YELLOW + boss.getMine() + PURPLE + " за своей добычей!"); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package net.charkosoff.vimeworld; | ||
|
||
public class Boss { | ||
private final long TIME; | ||
private final String NAME; | ||
private final String MINE; | ||
|
||
public Boss(String name, long time, String mine){ | ||
this.TIME = time; | ||
this.NAME = name; | ||
this.MINE = mine; | ||
} | ||
|
||
public String getName(){ | ||
return this.NAME; | ||
} | ||
|
||
public long getRespawn(){ | ||
return this.TIME; | ||
} | ||
|
||
public String getMine(){ | ||
return this.MINE; | ||
} | ||
|
||
public boolean isKill(String string){ | ||
return string.contains(this.getName() + " был повержен") || string.contains(this.getName() + " была повержен"); | ||
} | ||
|
||
public long getToRespawn(){ | ||
return System.currentTimeMillis() + this.getRespawn(); | ||
} | ||
} |