/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author nbriere */ public class cTexture implements java.io.Serializable { public cTexture(String n) { name = n; } public String toString() { return name; } public int hashCode() { return name.hashCode(); } public boolean equals(Object o) { /* if (!(o instanceof cTexture)) return false; return ((cTexture)o).name.equals(name); */ return toString().equals(o.toString()); } public String name; }