Rik's Treehouse > Babbling in Binary > My Software > Orphanware > R2DToo > R2DToo Help > For the Programmer > setStateCount |
Declaration Parameters Return Value Remarks Example See Also | DeclarationpState __stdcall setStateCount( int x, // x-coordinate of agent int y, // y-coordinate of agent int count // number of state variables ); ![]() Parameters
![]() Return ValueA pointer to the allocated state array for the agent at (x,y) (array of tState).![]() RemarksThis function is available through the API. Use it only from within onAgentCreate to set the size of the agent state array. Use the same value for all agents. After calling this function you may assign state variables (assignState) for state indices 0..count-1.![]() Example![]() See AlsoonAgentCreate, assignState. |
[Rik's Office Hours] [Contact Rik] Last updated: Fri Apr 30 2004, 1:45pm |