Exemple #1
0
    public ENTERABILITY IsEnterable()
    {
        if (MovementCost == 0)
        {
            return(ENTERABILITY.Never);
        }

        //Check our installed object to see if it has something about its enterability
        if (InstalledObject != null && InstalledObject.isEnterable != null)
        {
            //if it does, use it
            return(InstalledObject.isEnterable(InstalledObject));
        }

        return(ENTERABILITY.Yes);
    }