summaryrefslogtreecommitdiffstats
path: root/pacman-c++/server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Added roundstotycro2011-04-191-22/+93
| | | | | rounds will end when all points are removed TODO: end round when a pacman gets eaten
* Added number of rounds parameter (unused)totycro2011-04-191-1/+18
|
* remove old crapmanuel2011-04-191-6/+1
|
* - add actor.canEat(other) to check if actor can eat other (note: that ↵manuel2011-04-181-28/+117
| | | | | | | doesn't mean that other can eat actor!!) - server now generated and sends the colorlist to the server in the first map update packet - add a better AI
* few bot improvementsmanuel2011-04-181-4/+15
|
* more ai stuffmanuel2011-04-171-4/+17
|
* funny ai implementationmanuel2011-04-171-22/+41
|
* fix colorize block stuffmanuel2011-04-171-1/+1
|
* more bot stuffmanuel2011-04-171-5/+5
|
* if a player disconnect the player will now be a botmanuel2011-04-171-3/+17
|
* a bigger commit again:manuel2011-04-171-17/+105
| | | | | | - fix pacman movement. now more like real pacman (again). e.g. if you press a direction-key again: the pacman will move in that direction as soon as possible and no repeated keypress is needed - add random colorized blocks (without dieing yet) - add cmdline-option: --nocolorblocks to disable that
* add support for random bonus pointsmanuel2011-04-151-4/+46
|
* place actors at random positionsmanuel2011-04-141-0/+4
|
* add dynamic player count for client. currently works only with 1 player as ↵manuel2011-04-141-10/+8
| | | | server doesn't send the initial map to the clients
* add commandline options to server (not fully done yet)manuel2011-04-141-12/+134
| | | | fix client crash when sound is not available
* some speed improvments regarding protobufmanuel2011-04-131-10/+7
|
* - rewrite network methods (ugly but good performance)manuel2011-04-131-36/+49
| | | | - fix memleaks
* minor improvments: better debug messages + no tabs :Dmanuel2011-04-121-9/+11
|
* compile fix, remove some debugging, improve movement calculation in corner casesmanuel2011-04-121-6/+8
|
* make removal of items from scene delayed by one tick (looks better)manuel2011-04-121-15/+8
| | | | | | all items are now derived from gameentity and gameentity is derived from pixmapitem: - this is naturally better - allows us to add a generic gameentity.color()
* finding out which actor has eaten which element didn't work correctly. ↵manuel2011-04-121-1/+4
| | | | instead of checking that on client side the server now just sends the id of the actor withing the explicit empty id data field
* make the server a non gui applicationmanuel2011-04-121-1/+1
| | | | | | | | this required a lot of reorganization: - don't create ANY pixmaps. that requires QtGui - don't create and QtWidgets - thus SceneHolder is now a QGraphisScene itself - and MainWidgets is a QWidget having SceneHolder as member variable
* - server doesn't neet mainwidget.cppmanuel2011-04-111-1/+18
| | | | | - removed local mode (doesn't work anyway) - made movement more like orginal pacman
* minor movement improvementsmanuel2011-04-111-7/+6
|
* - make moving animation a bit smoother (on my computer at least)manuel2011-04-111-10/+17
| | | | - make animation stop after getting blocked
* make constants::server externmanuel2011-04-111-8/+15
| | | | code cleanup
* implemented aitotycro2011-04-111-1/+4
|
* create and use Constants::servermanuel2011-04-111-1/+3
|
* progresstotycro2011-04-111-4/+15
|
* Added basic game logictotycro2011-04-111-3/+10
|
* First parameter for client is server iptotycro2011-04-111-1/+4
| | | | Added asserts to confirm that packets were parsed correctly
* make local player always the first player in scoreboardmanuel2011-04-111-4/+3
|
* - second cleanup: move game/round points inside arraymanuel2011-04-111-7/+8
| | | | - order is defined by Color::order[] used by server and client (gui too)
* - first round of coding cleanupmanuel2011-04-101-28/+49
| | | | - small sound fix
* Fixed brackets/indention (getting tired ;)totycro2011-04-101-9/+6
|
* fixed a minor crashtotycro2011-04-101-0/+6
|
* transmit game scoretotycro2011-04-101-3/+17
|
* Added primitive game logic (make pacman avoid walls)totycro2011-04-101-1/+9
|
* Tell player about their colortotycro2011-04-101-19/+11
| | | | minor cleanup
* more verbose debug messagestotycro2011-04-091-0/+4
|
* minor adaptionstotycro2011-04-091-1/+1
|
* first version of multiplayertotycro2011-04-091-12/+92
|
* added .proto file and generated sourcestotycro2011-04-091-1/+2
|
* hackishly disabled audio for srvtotycro2011-04-091-3/+8
| | | | made test movement work
* added some utilitytotycro2011-04-091-1/+39
|
* Pull up methods from mainwidget to sceneholder for sharing in both client ↵totycro2011-04-091-0/+22
and server