public int getEntity ( String name ) { // System.err.println("%% Looking up entity " + name); Integer ch = ( Integer ) theEntities . get ( name ) ; if ( ch == null ) return 0 ; return ch . intValue ( ) ; }
Get an entity value by name .