src/players.cpp
// This function moves the players according to the data from the
// input devices

This function moves the players according to the data from the
input devices
This function moves the players according to the data from the input devices
bool movePlayers(FILE_DIWRAP_KEYS_TYPE* keys)
{
	vectorListNodeStruct<playerUnitStruct> *unit;
	int i=0;
	for (unit=playerList.getFirstNode(); unit!=NULL; unit=playerList.getNextNode(unit)) {
		if (!unit->data.nowActive) continue;
		if (!movePlayerUnit(*unit, keys)) return false;
	}
	return true;
}
bool movePlayers ( FILE_DIWRAP_KEYS_TYPE * keys ) { vectorListNodeStruct < playerUnitStruct > * unit ; int i = 0 ; for ( unit = playerList . getFirstNode ( ) ; unit != NULL ; unit = playerList . getNextNode ( unit ) ) { if ( ! unit -> data . nowActive ) continue ; if ( ! movePlayerUnit ( * unit , keys ) ) return false ; } return true ; }
This function moves the players according to the data from the
input devices
This function moves the players according to the data from the input devices
// move all the players in the game world...
 // don't move this unit if it's not active now
 // move this unit
 // for unit
 // all ok
