-
Notifications
You must be signed in to change notification settings - Fork 161
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
[DNM] Initial Astreaus Dialogue System Rip #631
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
No description provided.