Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / screens / LoserScreen.as
blob4881764dcf83b6701852c82cb969b5d6808e5ae2
1 package org.sevenchan.dongs.screens
3 import org.sevenchan.AdventureController;
4 import org.sevenchan.dongs.Creature;
5 import org.sevenchan.dongs.Screen;
6 /**
7 * ...
8 * @author Harbinger
9 */
10 public class LoserScreen extends Screen
12 private var player:Creature;
13 private var winner:Creature;
15 public static function push(ply:Creature, winner:Creature):void {
16 AdventureController.screenQueue.write(new LoserScreen(ply, winner));
17 AdventureController.screenQueue.dump();
20 public function LoserScreen(ply:Creature,wnr:Creature)
22 trace("LOSER'D");
23 player = ply;
24 winner = wnr;
25 this.appearanceButton = true;
26 this.debugMenuButton = true;
27 this.exportGameButton = true;
28 this.loadOrSaveButton = true;
29 this.newGameButton = false;
30 this.importGameButton = false;
32 clearButtons();
33 this.setButton(NEXT_BUTTON, "Next");
36 override public function processButtonPress(id:int):Boolean
38 if (id == -1) {
39 updateScreen()
40 return false;
42 player.HP = player.maxHP;
43 return true;
47 override public function getScreenText():String
49 return "<h2>You Lost</h2><p>You wake up at the barn, feeling refreshed, but sore... And also short 30 gold.</p>";