All your base are belongs to us

[ENGLISH]

These days I've been re-writing Flexo's base classes. Everything went ok, although I had to change some things that were (strangely) impossible to do in Java: like abstract static methods. But I did some workarounds and the code still looks clean.

Today, I finished the math classes, which I've surrounded with an interface to force users to use 'set' methods instead of changing the values directly on those classes. I've also coded a sinple pooling system to keep the garbage collector quiet enough.

The next step is the scene manager (one of the reasons of the re-design of the engine) and after it, the other modules. I'll try to re-use much of the code of them, so I hope I won't spend much time from now on.

[ESPAÑOL]

Estos últimos días he estado re-escribiendo las clases base de Flexo. Todo ha salido bien, aunque he tenido que cambiar algunas cosas que no pensaba que serían imposibles de hacer en Java: como métodos estáticos abstractos. De momento todo va bien y está quedando un código relativamente limpio.

Hoy por la tarde terminé las clases matemáticas, que he encubierto con un interfaz para no permitir a los usuarios modificar los valores directamente y obligarles a usar los métodos 'set' pertinentes. También he programado un sencillo sistema de pooling para no tener al recolector de basura demasiado ocupado.

El siguiente paso es el gestor de escenas (uno de los motivos de este re-diseño del motor) y, a partir de ahí el resto de módulos. De ahí podré aprovechar mucho código así que espero que no me lleve demasiado tiempo.

Posted byMiguel Herrero at 11:44 PM  

0 comments:

Post a Comment