Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gobase.view.video
- {
- import flash.events.Event;
- import flash.events.EventDispatcher;
- import flash.events.IEventDispatcher;
- public class Tea extends EventDispatcher
- {
- public static const CONCERNED_ABOUT_TIME:Boolean = false;
- public static const NEEDS_TO_VISIT_GYM:Boolean = true;
- public static const HAS_JIRAS:Boolean = true;
- public static const WANTS_TO_DO_JIRAS:Boolean = true;
- public static const HOT:String;
- public static const WARM:String;
- public static const COLD:String;
- public function Tea(target:IEventDispatcher=null)
- {
- super(target);
- }
- public function isTeaTime():void
- {
- while(getHeat() == HOT)
- {
- if(wantsToDoJIRAS)
- {
- c$.blow()
- }
- else if(hasJiras)
- {
- c$.blow()
- }
- else if(needsToVisitGym)
- {
- c$.blow()
- }
- else if(concernedAboutTime)
- {
- c$.blow()
- }
- }
- while(getHeat() == COLD)
- {
- if(wantsToDoJIRAS)
- {
- c$.takesSip()
- }
- else if(hasJiras)
- {
- c$.takesSip()
- }
- else if(needsToVisitGym)
- {
- c$.takesSip()
- }
- else if(concernedAboutTime)
- {
- c$.blow()
- }
- }
- while(getHeat() == WARM)
- {
- if(wantsToDoJIRAS)
- {
- c$.gulpAndBurp()
- }
- else if(hasJiras)
- {
- c$.gulpAndBurp()
- }
- else if(needsToVisitGym)
- {
- c$.gulpAndBurp()
- }
- else if(concernedAboutTime)
- {
- c$.blow()
- }
- }
- dispatchEvent(new Event("BLOW"));
- }
- public function get wantsToDoJIRAS():Boolean
- {
- return WANTS_TO_DO_JIRAS;
- }
- public function get hasJiras():Boolean
- {
- return HAS_JIRAS;
- }
- public function get needsToVisitGym():Boolean
- {
- return NEEDS_TO_VISIT_GYM;
- }
- public function get concernedAboutTime():Boolean
- {
- return CONCERNED_ABOUT_TIME;
- }
- public function getHeat():void
- {
- return HOT;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement