patch-include_Game_h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $OpenBSD: patch-include_Game_h,v 1.1.1.1 2014/05/29 08:31:26 kirby Exp $
  2. Additional construction yard and factory keybindings.
  3. From upstream: 319cb3491ffbdfb9763fd8c3b9a71319d5595dec
  4. --- include/Game.h.orig Sat Feb 16 16:46:31 2013
  5. +++ include/Game.h Mon May 26 08:43:56 2014
  6. @@ -288,7 +288,12 @@ class Game (public)
  7. /**
  8. Marks that the selection changed (and must be retransmitted to other players in multiplayer games)
  9. */
  10. - inline void selectionChanged() { bSelectionChanged = true; };
  11. + inline void selectionChanged() {
  12. + bSelectionChanged = true;
  13. + if(pInterface) {
  14. + pInterface->updateObjectInterface();
  15. + }
  16. + };
  17. void onReceiveSelectionList(std::string name, std::set<Uint32> newSelectionList, int groupListIndex);
  18. @@ -465,6 +470,13 @@ class Game (public)
  19. \return true if action click is possible
  20. */
  21. bool handleSelectedObjectsActionClick(int xPos, int yPos);
  22. +
  23. +
  24. + /**
  25. + Selects the next structure of any of the types specified in itemIDs. If none of this type is currently selected the first one is selected.
  26. + \param itemIDs the ids of the structures to select
  27. + */
  28. + void selectNextStructureOfType(const std::set<Uint32>& itemIDs);
  29. public:
  30. enum {