@@ -0,0 +1,1267 @@
+package model;%0A%0Aimport java.math.BigInteger;%0A%0Aimport processing.core.PApplet;%0Aimport processing.core.PConstants;%0Aimport processing.core.PFont;%0A%0Apublic class Info %7B%0A%0A%09private String uname, sex, origem;%0A%09private int agerank;%0A%09private BigInteger uid;%0A%09PApplet processing;%0A%09PFont font;%0A%0A%09public Info(PApplet processing, PFont font, BigInteger uid, String sex,%0A%09%09%09String origem, String uname, int agerank) %7B%0A%0A%09%09this.processing = processing;%0A%09%09this.uname = uname;%0A%09%09this.sex = sex;%0A%09%09this.origem = origem;%0A%09%09this.agerank = agerank;%0A%09%09this.uid = uid;%0A%09%09this.font = font;%0A%0A%09%7D%0A%0A%09public void adicionaInformacao(float x, float y) %7B%0A%09%09processing.fill(255);%0A%09%09processing.textAlign(PConstants.LEFT);%0A%09%09processing.textFont(font);%0A%09%09processing.text(toString(), x, y + 20);%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09StringBuilder builder = new StringBuilder();%0A%09%09if (uname != null) %7B%0A%09%09%09builder.append(uname);%0A%09%09%09builder.append(%22%5Cn%22);%0A%09%09%7D%0A%09%09if (sex != null) %7B%0A%09%09%09builder.append(sex);%0A%09%09%09builder.append(%22%5Cn%22);%0A%09%09%7D%0A%09%09if (origem != null) %7B%0A%09%09%09builder.append(origem);%0A%09%09%09builder.append(%22%5Cn%22);%0A%09%09%7D%0A%09%09if (uid != null) %7B%0A%09%09%09builder.append(uid);%0A%09%09%09builder.append(%22%5Cn%22);%0A%09%09%7D%0A%09%09if (agerank %3C 0) %7B%0A%09%09%09builder.append(agerank);%0A%09%09%09builder.append(%22%5Cn%22);%0A%09%09%7D%0A%0A%09%09return builder.toString();%0A%09%7D%0A%0A%7D%0A

Add user info