Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.

Allow force-to moves for movables#657

Open
michaelzangl wants to merge 3 commits intomasterfrom
movables-work-at-destination
Open

Allow force-to moves for movables#657
michaelzangl wants to merge 3 commits intomasterfrom
movables-work-at-destination

Conversation

@michaelzangl
Copy link
Copy Markdown
Member

@michaelzangl michaelzangl commented Jul 25, 2017

Allow movables to be forced to move at a given position and pass on the flag to make them work there.

Logic (movables strategies) only implemented for Geologist.

Android still missing - I think Android should always use a forced move and then send the people working.

return EMoveToMode.WORK;
}
if ((modifiers & GOEvent.MODIFIER_SHIFT) != 0) {
return EMoveToMode.FORCED;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original: CTRL forces soldiers to go to that position


public static EMoveToMode modeForModifiers(int modifiers) {
if ((modifiers & GOEvent.MODIFIER_CTRL) != 0) {
return EMoveToMode.WORK;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original: ALT

@andreas-repp
Copy link
Copy Markdown
Member

Is this a duplicate of #709?

@michaelzangl
Copy link
Copy Markdown
Member Author

Yes, might be...

@PaweX
Copy link
Copy Markdown

PaweX commented Mar 18, 2019

In the original Settlers III, we don't need to press ALT key, because "force move" feature is always on. Settlers IV introduced ALT+move as things are slightly different there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants