Skip to content

[DNM] Initial Astreaus Dialogue System Rip#631

Open
Dark98 wants to merge 1 commit into2006-Scape:masterfrom
Dark98:dialogue-plugin-system
Open

[DNM] Initial Astreaus Dialogue System Rip#631
Dark98 wants to merge 1 commit into2006-Scape:masterfrom
Dark98:dialogue-plugin-system

Conversation

@Dark98
Copy link
Collaborator

@Dark98 Dark98 commented Feb 26, 2023

No description provided.

Copy link
Contributor

@advnau advnau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just some initial thoughts

*/
public abstract class Dialogue {

private static Player player;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be static.

* @param dialogue
* The dialogue to sent.
*/
public final DialogueFactory sendDialogue(Dialogue dialogue) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we set player boolean to them using the new system here?

*
* @return The instance of this factory.
*/
public void clear() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should set player.dialoguePlugin to false here in the clear method.

public final class GeneralStoreDialogue extends Dialogue {
@Override
public void sendDialogues(DialogueFactory factory) {
factory.getPlayer().dialoguePlugin = true;
Copy link
Contributor

@ipkpjersi ipkpjersi Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would name the variable here dialogue, not factory, since dialogue is a more descriptive name of what it is.

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.

3 participants