Name, Clonename and CloneIndex

Ideas for Game Editor evolution.

Name, Clonename and CloneIndex

Postby jazz_e_bob » Tue Mar 16, 2004 3:40 am

Could I please have an example of the usage of:

char name[ACTOR_NAME]; //actor name

char clonename[CLONE_NAME]; //actor clone name (actor name followed
by clone index - Ex.: ship.1, ship.2, ...)

long cloneindex; //clone index (count from 0)

Thanks people...
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby makslane » Tue Mar 16, 2004 1:52 pm

If you have an actor "tree" then, you have:

name: tree
clonename: tree.0
cloneindex: 0


Uses:

1) print the actor name:

strcpy(text, name);

2) test a specified clone:

if(cloneindex == 3)
{
...
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jazz_e_bob » Tue Mar 16, 2004 3:46 pm

8) Thanks.
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest