2025-07-25 17:07 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001623AIAIpublic2009-09-06 18:39
Reporterhughperkins 
Assigned ToKloot 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Summary0001623: [patch] New Java AI "HughAI"
DescriptionNew Java AI created, "HughAI".

New Java AI created, "HughAI".

It runs. It shows off lots of cool concepts that can be used in other AIs, copy and pasted, forked, and so on:
- GUI, using Swing, with registration pattern, so classes can register a button, and a handler method, with the GUI, and this will automatically add a button to the GUI
- lots of maps:
   - losmap: updated during exploration, showing which areas have been explored
   - metal spot map
   - enemy map
   - movement area map: very interesting map: if two points have the same area number, then a unit can move between them freely: there are no obstructions, such as mountains. There are movement area maps for infantry, vehicles, and boats
   - the maps each have a GUI button to draw them onto the terrain
- events:
   - AI events can be subscribed to
   - more abstracted events, such as unit events, enemy tracker events, and so on
Additional InformationUses hoijui's Java Interface v0.1
TagsNo tags attached.
Attached Files
  • bz2 file icon HughAI.patches.tar.bz2 (74,262 bytes) 2009-09-05 08:33
  • patch file icon 0001-Added-link-to-HughAI-repository.patch (898 bytes) 2009-09-05 18:38 -
    From 75123e2679bab104e4a1519812253585b8751a70 Mon Sep 17 00:00:00 2001
    From: Hugh Perkins <hughperkins@gmail.com>
    Date: Sun, 6 Sep 2009 00:39:45 +0800
    Subject: [PATCH] Added link to HughAI repository
    
    ---
     .gitmodules        |    3 +++
     AI/Skirmish/HughAI |    1 +
     2 files changed, 4 insertions(+), 0 deletions(-)
     create mode 160000 AI/Skirmish/HughAI
    
    diff --git a/.gitmodules b/.gitmodules
    index 4782aff..044303d 100644
    --- a/.gitmodules
    +++ b/.gitmodules
    @@ -4,3 +4,6 @@
     [submodule "NTai"]
     	path = AI/Skirmish/NTai
     	url = git://github.com/Tarendai/ntai.git
    +[submodule "AI/Skirmish/HughAI"]
    +	path = AI/Skirmish/HughAI
    +	url = git://github.com/hughperkins/HughAI.git
    diff --git a/AI/Skirmish/HughAI b/AI/Skirmish/HughAI
    new file mode 160000
    index 0000000..0a8887c
    --- /dev/null
    +++ b/AI/Skirmish/HughAI
    @@ -0,0 +1 @@
    +Subproject commit 0a8887c3fca238accd382ab508a5463d805f6603
    -- 
    1.6.0.4
    
    
    patch file icon 0001-Added-link-to-HughAI-repository.patch (898 bytes) 2009-09-05 18:38 +

-Relationships
+Relationships

-Notes

~0004068

hughperkins (reporter)

Created github repository here:

git://github.com/hughperkins/HughAI.git

~0004069

hughperkins (reporter)

Uploaded 0001-added-link-to-HughAI-repository.patch , which maybe will do the same as typing:

git submodule add git://github.com/hughperkins/HughAI.git AI/Skirmish/HughAI

~0004070

hughperkins (reporter)

Note that in the process of migrating from a patchfile/spring git to using a dedicated HughAI git repository, a couple of dev files got integrated into the commit history. I've committed changes to the HughAI repository just now that should fix this issue.

~0004071

Kloot (developer)

Done. Please keep it in a compilable state. :)
+Notes

-Issue History
Date Modified Username Field Change
2009-09-05 08:33 hughperkins New Issue
2009-09-05 08:33 hughperkins File Added: HughAI.patches.tar.bz2
2009-09-05 15:26 hughperkins Note Added: 0004068
2009-09-05 18:38 hughperkins File Added: 0001-Added-link-to-HughAI-repository.patch
2009-09-05 18:39 hughperkins Note Added: 0004069
2009-09-06 15:59 hughperkins Note Added: 0004070
2009-09-06 18:39 Kloot Note Added: 0004071
2009-09-06 18:39 Kloot Status new => resolved
2009-09-06 18:39 Kloot Resolution open => fixed
2009-09-06 18:39 Kloot Assigned To => Kloot
+Issue History