Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit bbfe1ce

Browse files
author
CharkosOff
committed
Initial commit
0 parents  commit bbfe1ce

File tree

16 files changed

+392
-0
lines changed

16 files changed

+392
-0
lines changed

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/artifacts/Checkly_jar.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/description.html

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/project-template.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/uiDesigner.xml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Checkly.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

src/META-INF/MANIFEST.MF

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Main-Class: net.charkosoff.Main
3+

src/net/charkosoff/Main.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package net.charkosoff;
2+
3+
import net.charkosoff.vimeworld.Checkly;
4+
5+
public class Main {
6+
7+
public static void main(String[] args) {
8+
new Checkly();
9+
}
10+
}

src/net/charkosoff/snd.wav

828 KB
Binary file not shown.

src/net/charkosoff/utils/Logger.java

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package net.charkosoff.utils;
2+
3+
import net.charkosoff.vimeworld.Boss;
4+
5+
import java.text.SimpleDateFormat;
6+
import java.util.Date;
7+
8+
public class Logger {
9+
public static final String RESET = "\u001B[0m";
10+
public static final String BLACK = "\u001B[30m";
11+
public static final String RED = "\u001B[31m";
12+
public static final String GREEN = "\u001B[32m";
13+
public static final String YELLOW = "\u001B[33m";
14+
public static final String BLUE = "\u001B[34m";
15+
public static final String PURPLE = "\u001B[35m";
16+
public static final String CYAN = "\u001B[36m";
17+
public static final String WHITE = "\u001B[37m";
18+
19+
public void successMessage(String message){
20+
System.out.println(BLUE + message + RESET);
21+
}
22+
23+
public void infoMessage(String message){
24+
System.out.println(PURPLE + message + RESET);
25+
}
26+
27+
public void errorMessage(String message){
28+
System.out.println(RED + message + RESET);
29+
}
30+
31+
public void killedMessage(Boss boss){
32+
SimpleDateFormat formatted = new java.text.SimpleDateFormat("HH:mm:ss");
33+
String formattedDate = formatted.format(new Date(boss.getToRespawn()));
34+
System.out.println("\n" + CYAN + "| Был убит босс: " + boss.getName() + CYAN + ". Следующий спавн: " + CYAN + formattedDate + RESET);
35+
}
36+
37+
public void bossSpawnedMessage(Boss boss){
38+
System.out.println("\n" + PURPLE + "| Босс " + boss.getName() + PURPLE + " был заспавнен! Вперед на " + YELLOW + boss.getMine() + PURPLE + " за своей добычей!");
39+
}
40+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package net.charkosoff.vimeworld;
2+
3+
public class Boss {
4+
private final long TIME;
5+
private final String NAME;
6+
private final String MINE;
7+
8+
public Boss(String name, long time, String mine){
9+
this.TIME = time;
10+
this.NAME = name;
11+
this.MINE = mine;
12+
}
13+
14+
public String getName(){
15+
return this.NAME;
16+
}
17+
18+
public long getRespawn(){
19+
return this.TIME;
20+
}
21+
22+
public String getMine(){
23+
return this.MINE;
24+
}
25+
26+
public boolean isKill(String string){
27+
return string.contains(this.getName() + " был повержен") || string.contains(this.getName() + " была повержен");
28+
}
29+
30+
public long getToRespawn(){
31+
return System.currentTimeMillis() + this.getRespawn();
32+
}
33+
}

0 commit comments

Comments
 (0)