Opened 3 years ago
Closed 3 years ago
#5884 closed enhancement (fixed)
Move (remaining) Can* functions in UnitAI to their respective components.
Reported by: | Freagarach | Owned by: | |
---|---|---|---|
Priority: | Nice to Have | Milestone: | Alpha 25 |
Component: | Simulation | Keywords: | |
Cc: | Patch: | Phab:D3638 |
Description
E.g. UnitAI.prototype.CanAttack = function(target)
defers the question to cmpAttack
. Similar things can be done for garrison
gather
and returnResource
. (Build / Repair is more difficult.)
Why? This reduces duplication and eases code maintenance by also reducing UnitAI complexity (a bit).
Change History (3)
comment:1 by , 3 years ago
Type: | defect → enhancement |
---|
comment:2 by , 3 years ago
Patch: | → Phab:D3638 |
---|
comment:3 by , 3 years ago
Keywords: | simple UnitAI removed |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Garrison.