Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2189 closed defect (fixed)

[PATCH] Allow setting rally points in mixed selections

Reported by: historic_bruno Owned by: leper
Priority: Nice to Have Milestone: Alpha 15
Component: UI & Simulation Keywords: patch
Cc: Patch:

Description

Currently, if you select a field and e.g. civ center, you can't set any rally points because the field doesn't allow that. Instead, the civ center should have a rally point set.

We should also think about mixed unit and building selections. Should orders go only to units, or buildings, or both (unit order and rally point)?

Attachments (1)

rallypointCleaning.diff (7.7 KB ) - added by mimo 11 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by mimo, 11 years ago

Keywords: patch review added
Summary: Allow setting rally points in mixed selections[PATCH] Allow setting rally points in mixed selections

Here is a patch which removes some dupplication in getActionInfo and determineAction in gui/session/input.js, so removing quite some useless calls to GetEntityState. I've taken that opportunity to implement the first part of this ticket, i.e. allowing to set rally points even if not all selected buildings have a rally point.

The second part of the ticket needs more discussion/thinking as a same entity could have an order and a rallypoint possible. I don't think it is possible now, but we could for example add an order attack to buildings, or add a rally point to siege units or ships. Depending on such possibilities, the order in which we look for orders and rallypoints have importance.

So this patch keeps the present logic: if at least one unit in the selection, only orders are given; otherwise if at least one entity have rallyPoint, rallyPoints are set.

by mimo, 11 years ago

Attachment: rallypointCleaning.diff added

comment:2 by historic_bruno, 11 years ago

Milestone: BacklogAlpha 16

comment:3 by historic_bruno, 11 years ago

Priority: Should HaveNice to Have

comment:4 by leper, 11 years ago

Owner: set to leper
Resolution: fixed
Status: newclosed

In 13989:

Remove duplication between getActionInfo and determineAction. Allow setting rally points if not all selected buildings can do so. Patch by mimo. Fixes #2189.

comment:5 by leper, 11 years ago

Keywords: review removed
Milestone: Alpha 16Alpha 15

Thanks for the patch. I'll move the remaining part to a new ticket as that might need some discussion.

Note: See TracTickets for help on using tickets.