[Gambas-user] Hot to get Class Name of Object
Tobias Boege
taboege at ...626...
Wed Sep 17 04:29:43 CEST 2014
On Tue, 16 Sep 2014, Randall Morgan wrote:
> Hi All,
>
> This may be answered else where but I was unable to locate an answer using
> google.
>
> I need to be able to query an object for it's class name. I have an object
> that gets passed an owner object then, the owner is changed to a new object
> of a different class (think fire balls being tossed a enemy subjects). I
> need to know if the object is owned by the player or the enemy. This way I
> can change it's state appropriately.
>
> Thanks in advance for the helpful replies.
>
Object.Class(yourObject).Name.
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
More information about the User
mailing list