[haXe] Fisix + haXe = FisaXe? hehe

Ken Rogers ken at fundamentalflaws.com
Thu Jan 4 16:40:46 CET 2007


That is great Nicolas, thank you very much. Not being able to have the 
Fisix.hx in the package is just fine.  That will make things much more 
simplified in the actual application.  I was just playing around but now 
I would like to do some "FisaXe" apps that are more complex and this 
will help out quite a bit.

Thanks again,
-Ken

Nicolas Cannasse wrote:
>> 3. Next I created a haXe project in Eclipse called FisixHX and wrote a 
>> file FisixHX.hx:
>>
>> package ;
>> import com.fileitup.fisixengine.utils.MathEngine;
>> import com.fileitup.fisixengine.core.EngineObject;
>> import com.fileitup.fisixengine.materials.MaterialFactory;
>> import com.fileitup.fisixengine.utils.ArrayUtils;
>>     
> [...]
>
> Here's a small tip to define a shortcut that imports a whole package at
> once.
>
> You can define in "Fisix.hx" :
>
> typedef MathEngine = com.fileitup.fisixengine.utils.MathEngine;
> typedef ...
> ...
>
> then in your "Test.hx" :
>
> import Fisix;
>
> You can then access all Fisix types without package.
> The only restriction is that Fisix.hx can't be in the
> com.fileitup.fisixengine package
>
> Nicolas
>
>   




More information about the Haxe mailing list