Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / bodyparts / eye / GhostEye.as
blobfd4bf502bf8ae073b4970492045966f31a9d2da0
1 package org.sevenchan.dongs.bodyparts.eye
3 import org.sevenchan.dongs.bodyparts.Eye;
4 import org.sevenchan.dongs.bodyparts.IBodyPart;
5 import org.sevenchan.dongs.Creature;
6 import flash.net.registerClassAlias;
7 /**
8 * ...
9 * @author Harbinger
11 public class GhostEye extends Eye implements IBodyPart
13 registerClassAlias("EGhostEye", GhostEye);
15 private var _name:String = "";
17 /**
19 * @param nam
20 * @param color
22 public function GhostEye(nam:String="",color:String="")
24 _name = nam;
25 this.color = color;
28 /* INTERFACE org.sevenchan.dongs.bodyparts.IBodyPart */
30 public override function get name():String
32 return _name;
35 public override function set name(value:String):void {
36 _name = value;
39 public override function getDescr(num:Number, host:Creature):String
41 return num + " ghostlike " + color + " glowing eye" + ((num > 1)?"s":"");
45 override public function getShortDescr(withModifier:Boolean = false):String
47 var t:String = "glowing eye";
48 if (withModifier)
49 t = name + " " + t;
50 return t;