Author Topic: Changelog - picture heavy  (Read 71355 times)

0 Members and 2 Guests are viewing this topic.

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 537
Re: Changelog - picture heavy
« Reply #465 on: October 17, 2021, 08:33:32 AM »
Game

Calculating and storing distance from co to unit when an order is placed and it has not already been calculated for that piece for it's current position.

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 537
Re: Changelog - picture heavy
« Reply #466 on: October 24, 2021, 09:14:50 AM »
Game

When you select a piece now shows the path the courier will take from it's HQ with orders.
You ideally want that to be short but the hq to be safe from enemy,



The driver for which piece you're giving order is you click to choose it.
You may then click esc to de select or click on another piece.
Whichever way you do this, the previous courier path will be removed.
That choosing a piece also sets up the container for orders.
Currently, if you go back to a piece you already input orders for you lose those.
Final behaviour is still TBD. 
I'll likely allow clicking a previous move arrow to allow additions to this turns orders.
Once a piece is underway though, you're likely to have to issue a halt order first and get a known location before you can issue further move orders.
A move has to be from a given location ( point ) to another in order to carry out calculations.
We can't do "just go to X, from wherever you are".

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 537
Re: Changelog - picture heavy
« Reply #467 on: October 31, 2021, 10:07:02 AM »
Game

Started organising a Turn object which will be used to hold the orders players give.

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 537
Re: Changelog - picture heavy
« Reply #468 on: November 13, 2021, 09:51:53 AM »
All

I've upgraded the suite to .Net 6 ( and Visual Studio 2022 ).

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 537
Re: Changelog - picture heavy
« Reply #469 on: November 21, 2021, 09:13:27 AM »
Game

Tracked down and fixed a bug in selecting a piece for orders.
Unless the piece is the army commander, always calculate the courier distance to it's CO.

The time taken for that courier is still the original calculation purely based on distance.
I need to make that more sophisticated and use a similar calculation to light cavalry.
We'll need fallback values because there are edge cases where there will be none.
An army might not have any light cavalry.

Offline Andy ONeill

  • Moderator
  • Viking
  • *****
  • Posts: 537
Re: Changelog - picture heavy
« Reply #470 on: December 05, 2021, 09:15:54 AM »
Game

Initial refactor adding timing for direct move order.