Uploading to SVN
#18
No worries, I added the files to the project now Smile

I made some changes to your monster spawning code (I just cleaned it up), you can see the changes here:
http://code.google.com/p/mc-server/sourc...cWorld.cpp

All monsters are derived from cMonster, so you don't need a special variable for each monster type, just one single cMonster pointer. You also always call three functions on the monster after creating it, you do that for each monster type. If you simply take those three functions out of the if statements, you will keep the code clean and readable, plus you have to write less codeTongue
Reply
Thanks given by:


Messages In This Thread
Uploading to SVN - by rs2k - 10-26-2011, 08:00 AM
RE: Uploading to SVN - by necavi - 10-26-2011, 08:05 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 08:08 AM
RE: Uploading to SVN - by necavi - 10-26-2011, 08:11 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 08:18 AM
RE: Uploading to SVN - by necavi - 10-26-2011, 08:21 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 08:24 AM
RE: Uploading to SVN - by necavi - 10-26-2011, 08:34 AM
RE: Uploading to SVN - by Kwen - 10-26-2011, 08:37 AM
RE: Uploading to SVN - by necavi - 10-26-2011, 08:38 AM
RE: Uploading to SVN - by FakeTruth - 10-26-2011, 08:38 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 08:39 AM
RE: Uploading to SVN - by FakeTruth - 10-26-2011, 08:43 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 09:18 AM
RE: Uploading to SVN - by FakeTruth - 10-26-2011, 09:51 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 09:56 AM
RE: Uploading to SVN - by rs2k - 10-26-2011, 01:28 PM
RE: Uploading to SVN - by FakeTruth - 10-26-2011, 11:32 PM
RE: Uploading to SVN - by rs2k - 10-27-2011, 01:11 AM



Users browsing this thread: 4 Guest(s)