1 package org
.sevenchan
.dongs
.bodyparts
3 import org
.sevenchan
.dongs
.clothing
.Clothing
;
4 import org
.sevenchan
.dongs
.Creature
;
5 import org
.sevenchan
.dongs
.weapons
.IWeapon
;
10 public interface IBodyPart
12 function get value
():Number;
13 function get sellDesc
():String;
14 function get name
():String;
15 function get category
():String;
16 function get location
():String; // In case the body part grows in an abnormal location.
17 function get weapon
():IWeapon
;
20 * Retrieve a long description of the body part
22 * "3 bloated, throbbing bananas"
27 function getDescr
(num
:Number, host
:Creature
):String;
28 function getShortDescr
(withModifier
:Boolean=false):String;
30 function onFailedAttack
(from
:Creature
, to
:Creature
):void;
31 function onGoodAttack
(from
:Creature
, to
:Creature
):void;
33 function tryEquip
(weapon
:IWeapon
):Boolean;
34 function isConcealedBy
(host
:Creature
, clothing
:Vector
.<Clothing
>):Boolean;