Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.polonez11212;
- import javax.swing.*;
- import java.awt.*;
- public class Casual {
- //tutaj bedzie Layout Slajdow po Starcie
- Slides slides;
- Music music = new Music();
- Start start;
- PlayerVariables pv = new PlayerVariables();
- Casual(Slides slides){
- this.slides=slides;
- this.start=slides.start;
- System.out.println("Works");
- }
- public void firstDay(){
- pv.movingHandlerON=true;
- start.addKeyListener(new MovingChoiceHandler(slides)); // naprawic !
- music.setMusic(pv.musicDay);
- music.loopMusic(99);
- music.startMusic();
- slides.textPanel.setText("You had the accident in forrest.\nYou take all u got and go into adventure.\n\nWhere do You want to go?\n\n[Q] Go forest Pathway [Z] Go Muddy road");
- }
- // po wypiciu wody i zdjedzeniu lub wyrzuceniu mamy opcje isc albo zostac i zregenerowac hp o 5hp. ale bedziemy spragnieni np o 10unitow.
- public void waterFound(){slides.textPanel.setText("You found Water.\nWhat do You want to do?\n\n[R]- Eat [T] Throw away");}
- public void foodFound(){slides.textPanel.setText("You found Food.\nWhat do You want to do?\n\n[R]- Eat [T] Throw away");}
- public void weaponFound(){slides.textPanel.setText("You found Weapon.\nWhat do You want to do?\n\n[R]- Take it [T] Throw away");}
- public void waterWasDrunk(){
- slides.textPanel.setText("You have drink the water\nThis action restored You 15 Units.\nWhere do You want to go?\n\n[W] Ahead, [S]go Back, [A] Left, [D] Right");
- }
- public void foodWasEaten(){
- slides.textPanel.setText("You have eat your food.\nThis action restored You 10HP and 5Units.\nWhere do You want to go?\n\n[W] Ahead, [S]go Back, [A] Left, [D] Right");
- }
- public void itemBeenThrowed(){
- slides.textPanel.setText("You have throwed Your item.\nWhere do You want to go?\n\n[W] Ahead, [S]go Back, [A] Left, [D] Right");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement