Alright, lets get a rundown of what I think I should use for game Programming
1) Thinking in C++, Volume 1: Introduction to Standard C++ (2nd Edition)
2) Thinking in C++, Vol. 2: Practical Programming, Second Edition
3) Game Programming Gems 1-8
Alright, That what I am doing for that but now lets see here.... I wanna know if any one else has any Game coding books...
I need to know how to do Game programming like this:
bool ChatHandler::HandleHelpCommand(const char* args)
{
ChatCommand *table = getCommandTable();
WorldPacket data;
if(!*args)
return false;
char* cmd = strtok((char*)args, " ");
if(!cmd)
return false;
if(!ShowHelpForCommand(getCommandTable(), cmd))
{
FillSystemMessageData(&data, m_session, "There is no such command");
m_session->SendPacket( &data );
}
return true;
}
I wanna learn code like that for my game
Another Example...
#ifndef ENABLE_GRID_SYSTEM
m_positionX = m_destinationX;
m_positionY = m_destinationY;
m_positionZ = m_destinationZ;
#else
assert( m_destinationX != 0 && m_destinationZ != 0 && m_destinationY != 0);
MapManager::Instance().GetMap(m_mapId)->ObjectRelocation<Creature>(this, m_destinationX, m_destinationY, m_destinationZ, m_orientation);
#endif
if(((uint32)m_positionX==respawn_cord[0])&&
((uint32)m_positionY==respawn_cord[1])&&
((uint32)m_positionZ==respawn_cord[2]))
SetUInt32Value(UNIT_FIELD_HEALTH,GetUInt32Value(UNIT_FIELD_MAXHEALTH));
m_destinationX = m_destinationY = m_destinationZ = 0;
m_timeMoved = 0;
m_timeToMove = 0;
}
else