Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / bodyparts / Hair.as
blobc43d0fc77d22080cbcc7f25ca91502c3746de212
1 package org.sevenchan.dongs.bodyparts
3 import org.sevenchan.dongs.Creature;
4 import flash.net.registerClassAlias;
5 /**
6 * ...
7 * @author Harbinger
8 */
9 public class Hair
11 registerClassAlias("P_Hair", Hair);
13 public var style:String="";
14 public var color:String="";
15 private var _value:Number;
16 public function get value():Number {
17 return _value;
19 public function Hair(style:String="",color:String="")
21 this.style = style;
22 this.color = color;
24 public function toString():String {
25 if (isBald())
26 return "bald head";
27 return style+" "+color+" hair";
30 public function isBald():Boolean {
31 return (style == "bald" || style == "");
34 public function getShortDescr(withModifier:Boolean = false):String {
35 var t:String = "hair";
36 if(withModifier)
37 t = style;
38 return t;