Skip to content

Conversation

@kkafar
Copy link
Collaborator

@kkafar kkafar commented Apr 24, 2022

Description

Checklist

  • Included code to test these changes
  • Updated Jira

@kkafar kkafar merged commit 775da33 into @kkafar/register-view-to-model Apr 24, 2022
kkafar added a commit that referenced this pull request Apr 24, 2022
* chore: allow for creation of different object types

* refact: newline at object-1 file end

* chore: add JavaDoc comments for MouseClickedEvent

* chore: add JavaDoc comments for KeyboardEvent

* chore: add JavaDoc comments for GameObjectStateChange

* chore: add JavaDocs comments for LocationModelStateChange

* chore: style update

* chore: make Initializer#mainStage field final

mainStage is coming as a constructor parameter and it is entry stage
provided by JavaFX. We do not change, and we do not want to change this
reference anywhere.

* chore: remove INTERACTIVE from GameObject.Type enum options

We do not intent to instantiate abstract InteractiveGameObject type.
Only more specific types should be instantiated.

* refact: move GameObject construction to separate factory class & methods

* chore: add GameObjectViewFactory class & methods

This aims to extract the object creation logic from LocationView class

* chore: add builder for LocationModel

This aims to extract the creation logic to separate class to make object
injection possible. (Object injection is needed as we need register view
    to model)

* fix: LocationModel builder methods

* chore: add non null assertion in LocationModel.Builder#setTag method

* chore: register GameObjectViews to their model classses!

* fix: convert game object type string to uppercase in factory method

* fix: remove "interactive" type from configuration types

* chore: update before merging (#19)
@mhawryluk mhawryluk deleted the @kkafar/fix-path-resolution branch April 30, 2022 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants