public bool HasState (int layerIndex, int stateID);