serge-web / serge

Serious Gaming, Evolved - web interface
https://sites.google.com/deepbluec.com/serge/
Apache License 2.0
15 stars 4 forks source link

5.3 Record player perception of other force #164

Closed IanMayo closed 4 years ago

IanMayo commented 4 years ago

As a < Player >, I want < to record/correct my perception of an asset from another force > so that < I can plan tactical strategies >.

A significant part of this wargame is that Red can hide its assets (typically fishing vessels) as a Green asset - and use stealth to get near to Blue assets.

Red can also do this picture management to try to track which are the Blue assets.

We include UI to support this.

Blue/Red can do this "picture management" in playing or planning phase. But, since the players don't have much to do during the adjudication phase, we can start off by giving them this capability during that phase.

This functionality can completely replace the functionality in MapAdjudicatingPlayerListener

The list of available platform types come from the wargame.platformTypes element in state. The platform-types block does contain the SVG filename of the relevant icon. if the icon is shown in the platform types drop-down, then maybe we should use that icon path instead of the pre-defined CSS path we're currently using (this will mean new platform-types can be added added from the user-configured wargame document, rather than via code change.

The transmission/receipt of these messages should be similar to how we current handle these events:

Acceptance criteria

UX

https://www.figma.com/file/2qiEitO08s8jXamHWI3VpP/SERGE-mapping-tool?node-id=0%3A1

screenshot

Ideally we would show the icons in the platform-type dropdown, and shaded color blocks in the force drop-down. But, we should start off with plain text for both, in order to test functionality/usability.

Notes

foxleigh81 commented 4 years ago

Putting @lilitkarapetyan's codesandbox link here for reference later: https://codesandbox.io/s/leaflet-with-react-qctv5