Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Line of Sight (Visibility) system #87

Merged
merged 22 commits into from
Jan 17, 2018
Merged

Add Line of Sight (Visibility) system #87

merged 22 commits into from
Jan 17, 2018

Conversation

jonpas
Copy link
Member

@jonpas jonpas commented Jan 16, 2018

  • Close Develop line of sight system #12
  • Functions for setting tile visibility effect
    • Reorder layers correctly
  • Add AETVObstacle class (opens Add Obstacles #86)
  • Add SensorRange property to Ship
    • Set SensorRange to MoveRange + 1 (will take proper effect when 9d4fb56 is merged)
  • Add tiled distance function
    • Restrict actions based on maximum distance they can be performed at
  • Use Vector2D for Tile reference in Actions
  • Make direct getters in GameModeBase in-line const
  • Set board visibility based on ship ranges
    • Hook actions into changing visible tiles
    • Block clicking on not visible enemy ships
    • Hide enemy ships from ship list
      • Remove fill on ship list initialization (manually call in begin play after visibility is all set)
    • Allow firing (Laser and Torpedo) through fog
      • Apply damage without logging if ship hit
    • Add debug toggles for ignoring visibility and showing enemy visibility during its turn
    • Add UpdateVisibleTiles() function which updates the board effects if called from player side or debug is enabled, and additionally returns array of visible tile positions (if passed, pass by ref)
    • Add GetVisibleShips() function which filters all ships on board by visibility (pass by ref)
  • Fix On(End/Begin)Perform() not being called in child classes
  • Increase map size to 50x50
  • Set all actions to end turn (at least for now - work on Project prototype finalization #83)
  • Resize Base grid tile to have 1px border (instead of 2px)
  • Change Hidden grid tile to black texture with 1px transparent border

Visibility Change on Move
Hidden Grid Tile

… visible tiles, Set sensor ranges for ships, Fix On(End/Begin)Perform() not being called in child classes
…ion (manually call in begin play after visibility is all set)
…den grid tile to black texture with 1px transparent border
@jonpas jonpas merged commit d4974f1 into master Jan 17, 2018
@jonpas jonpas deleted the lineOfSight branch January 17, 2018 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants