Update gradle build file to ignore false positive warnings

Move shared functionality into the SearchAI class
Move shared functionality into the Object class
Add new state enum types
Implement enemy AI
Make player get the gem right away
Fix keyListener still listening after winning or game over
Reduce obstacles to 5%
Make sure all objectives can be reached by player
Make sure all enemies can reach player

Signed-off-by: Chris Cromer <chris@cromer.cl>
This commit is contained in:
2019-10-13 21:10:16 -03:00
parent b0d8a06c83
commit 00c54e5e15
18 changed files with 1119 additions and 519 deletions

View File

@@ -22,9 +22,12 @@ plugins {
group 'cl.cromer.azaraka'
version '1.0.0'
//noinspection GroovyUnusedAssignment
sourceCompatibility = 1.8
//noinspection GroovyUnusedAssignment
targetCompatibility = 1.8
//noinspection GroovyUnusedAssignment
applicationName = 'Azaraka'
mainClassName = 'cl.cromer.azaraka.Azaraka'
@@ -37,7 +40,9 @@ dependencies {
//testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.+'
}
//noinspection GrUnresolvedAccess
ext.sharedManifest = manifest {
//noinspection GrUnresolvedAccess
attributes 'Main-Class': "$mainClassName",
'Class-Path': configurations.default.files.collect { "$it.name" }.join(' '),
'Implementation-Title': 'Gradle',
@@ -46,18 +51,19 @@ ext.sharedManifest = manifest {
jar {
manifest = project.manifest {
//noinspection GroovyAssignabilityCheck
from sharedManifest
}
if (project.uberJar == "true") {
//noinspection GroovyAssignabilityCheck
from sourceSets.main.output
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
}
else {
} else {
dependsOn tasks.withType(Copy)
}
}
@@ -81,15 +87,19 @@ task createDocs {
}
distributions {
//noinspection GroovyAssignabilityCheck
main {
//noinspection GrUnresolvedAccess
contents {
//noinspection GrUnresolvedAccess
from(createDocs) {
//noinspection GrUnresolvedAccess
into 'docs'
}
}
}
}
wrapper{
wrapper {
gradleVersion = '5.6.2'
}