Thread
:
Calling methods from different classes
View Single Post
Re: Calling methods from different classes
(#
5
)
Zacker
Project Leader, Lead Level Designer, Waypointer
Status:
Offline
Posts: 337
Join Date: Mar 2004
Location: Denmark
Re: Calling methods from different classes -
12-06-2004
Thanks for the replies. After a good talk with Musicman on MSN, we were able to work it out.
The variable liv needs to be declared as static. That prevents what Botman explained from happening.
It is done the same way in both Java and c++:
Code:
static int liv;
Zacker
View Public Profile
Send a private message to Zacker
Visit Zacker's homepage!
Find More Posts by Zacker