Alice Community

Alice Community (
-   How Do I? (
-   -   Typecasting? (

Simpae 07-03-2013 09:48 AM


I was wondering if there is any kind of typecasting inside of Alice?
I came across the need to use setOpacity on an object returned by the e.getModels() function of the collision event listener.

Maybe I am missing something here, but all I could achieve was to iterate over the models using the SMovableTurnable type (which allowed me to transform the objects but not anything else).


djslater107 07-04-2013 09:43 AM

There is no typecasting form within Alice at this time...

Of course, if you will import your world into Netbeans, you will then have full access to Java, and be able to cast there...

All the best,

clk4suport 12-18-2013 01:08 AM

Hi there,

Sorry , but there is no typecasting in alice at present time.

Thank You:)

All times are GMT -5. The time now is 01:08 AM.

Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.