package { import flash.display.Bitmap; public class PlayerView extends WorkerView { /* private static const EMOTE_OFFSET_Y:Number = -48; private var sandwichEmote:Bitmap; private var showingSandwichEmote:Boolean; private var animationTime:Number = 0; */ public function PlayerView(model:PlayerModel) { super(model); /*sandwichEmote = new (Embeds.embedEmoteSammich)(); sandwichEmote.x = -sandwichEmote.width / 2; showingSandwichEmote = false;*/ } override public function draw(delta:Number):void { super.draw(delta); /* if (PlayerModel(model).hasSandwich && !showingSandwichEmote) { addChild(sandwichEmote); showingSandwichEmote = true; animationTime = 0; } else if (!PlayerModel(model).hasSandwich && showingSandwichEmote) { removeChild(sandwichEmote); showingSandwichEmote = false; } if (showingSandwichEmote) { animationTime += delta; sandwichEmote.y = EMOTE_OFFSET_Y + GraphicsConstants.EMOTE_BOUNCE_HEIGHT - Math.abs(Math.sin(Math.PI * animationTime / GraphicsConstants.EMOTE_BOUNCE_INTERVAL)) * GraphicsConstants.EMOTE_BOUNCE_HEIGHT; }*/ } } }