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

Allow force-to moves for movables #657

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

michaelzangl
Copy link
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
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
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-eberle
Copy link
Member

Is this a duplicate of #709?

@michaelzangl
Copy link
Member Author

Yes, might be...

@PaweX
Copy link

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