summaryrefslogtreecommitdiff
path: root/src/player.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-19Fixed a crash when trying to switch serversThorbjørn Lindeijer1-2/+2
Ownership of the charInfo global variable wasn't well defined. It was being locked, unlocked and generally modified from a lot of places, and somewhere in this mess it ended up crashing when switching servers. Now the CharHandler instances, for eAthena and manaserv respectively, own this list of characters. A new class, Net::Character wraps up the slot index in combination with the player dummy. The list is passed on to the CharSelectDialog each time it changes. Both related and unrelated cleanups were made as well. Reviewed-by: Jared Adams
2010-02-09Made the Beings' logic be able to handle any tile height/width.Bertram1-1/+2
This is the First step to get rid of most hardcoded 32 values.
2010-02-08Fix some bugs in party handling and add HP to AvatarListBoxJared Adams1-0/+5
2010-02-08Merge PartyWindow and GuildWindow into SocialWindowJared Adams1-14/+31
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-02-01Small cleanups.Bertram1-2/+2
2010-01-31Unify eAthena and manaserv support in to one build.Daniel Bradshaw1-48/+49
Finish support for server types in the server dialog. Using the new server type function, strip out ifdefs, replacing them with if blocks for later merging in smaller atomic commits. Remove any remaining references to the support defs, including in build system.
2010-01-28Added virtual destructors, some implicit casts, and a couple of type changes.Daniel Bradshaw1-1/+1
Many warnings removed. Reviewed-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-01-24Remove some more _SUPPORT ifdefsJared Adams1-10/+15
2009-12-16Stored the cached config value which says if non-crucial particle effects ↵Philipp Sehmisch1-1/+1
are enabled or not in a static member of class Particle instead of an instanced member of Being.
2009-11-07More eAthena guild stuffJared Adams1-6/+2
Also some related chenges elsewhere
2009-10-24REplace instances of TMW with ManaJared Adams1-2/+2
2009-10-04Do some refactoring of Being codeJared Adams1-2/+0
2009-09-17Partially (but mainly) resolved Mantis #753 by making monsters, NPC, and ↵Bertram1-1/+4
Floor Items visible even covered. Next Step would be to add a caching system for multi-layered sprites + copy functions for SDL and OpenGL. Then, I'll be able to finish this, by making also players visible when covered... But Kage asked me (each and every hour) to do something else first ;)
2009-08-14Add functions to more easily work with equipmentJared Adams1-13/+28
Move hair changes back over to them; related server change was reverted. Also move NPCs back over to extending Player. NPCs will have equipment in the future too, but for now, disable that part while we finish the system.
2009-08-13Clean up Being and it's derivativesJared Adams1-91/+36
Move stuff only needed for Players into Player (like slots and sprite limits). Move name handling into Being (no need for three copies of this code). Clean up terminology (including Map terminology). Remove hair-related variables.
2009-08-01Remove some unused movement methodsChuck Miller1-15/+0
2009-07-02Fix building the ea client.Roderic Morris1-14/+14
2009-07-01Remove complex path finding for players. Add a simple path finding algorithm ↵Roderic Morris1-0/+14
to map.
2009-05-12Fix up handling of GM statusJared Adams1-31/+29
2009-05-12Add proper GM hilighting to other playersJared Adams1-0/+4
2009-05-12Some small cleanups and fixed compile with tmwserv supportBjørn Lindeijer1-3/+6
2009-05-12Handle in party status in a much saner wayJared Adams1-2/+4
2009-05-10Fix default party colorJared Adams1-4/+5
Also reset name color for speech bubbles back to where it was.
2009-05-10Color player names more appropriatelyJared Adams1-5/+18
Party memebrs use the party color. Text color for local player uses the local player color.
2009-05-09Increased the distance between head and overhead text a bitBjørn Lindeijer1-4/+4
Plus some small code cleanups.
2009-05-08Fixed so player display names to show correctly when the being is created. ↵Chuck Miller1-4/+5
Not just when the config value is changed.
2009-05-05Fix clearing of NPC spritesJared Adams1-0/+4
2009-05-05Moved code for hiding / showing player names from Player::logic() to a the ↵Chuck Miller1-12/+19
configure listener system
2009-05-05Fixed hidding showing player namesChuck Miller1-1/+14
2009-05-03Moved strprintf into stringutils.{h,cpp}Bjørn Lindeijer1-1/+1
2009-05-03Moved mIsGM from Being to Player and made isGM() constBjørn Lindeijer1-3/+5
2009-04-02Removed duplicated code in LocalPlayerBjørn Lindeijer1-8/+0
This code was present in both Player and LocalPlayer. If there's some kind of issue with executing this stuff in a different order, it should be solved differently.
2009-03-28Clean up eAthena party handling a bit moreJared Adams1-2/+2
2009-03-27Fixed some positioning issuesBjørn Lindeijer1-9/+5
Started with not being able to click NPCs properly, and I ended up correcting the draw positions of overhead text, targets and sprite ordering. It's now a bit more straight-forward. The position of a being is simply in the middle of the sprite at the bottom. When drawing the sprite, an offset remains because all the sprites are compensating for getting drawn half a tile to the left and one tile up.
2009-03-27Fixed position of dots on minimapBjørn Lindeijer1-4/+9
Also made mPx and mPy private and synchronize with mPos on setPosition(). The side effects of setting destination and clearing the path have been removed from setPosition(). Only the tmwserv PlayerHandler seemed to rely on that feature. Mantis-issue: 672
2009-03-27Fixed include structure in resource/ directoryBjørn Lindeijer1-0/+1
There is also a new rule that trivial constructors and destructors should no longer be trivially "documented", since this just takes up space with no gain.
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-4/+33
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-1/+1
Conflicts: Many files.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-2/+61
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-03-12Fixed an incorrect palette reference, as well as a break that wasIra Rice1-1/+1
introduced from the palette code. TODO: Cancel is effectively broken, and broken badly in the Colors setup pane. Fix this. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Make use of the new available colorsMajin Sniper1-4/+9
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
2009-03-12Make use of the new available colorsMajin Sniper1-4/+9
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
2009-03-06Merge branch 'aethyra/master'Bjørn Lindeijer1-0/+24
Conflicts: src/being.cpp src/being.h src/floor_item.cpp src/floor_item.h src/flooritemmanager.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/itemcontainer.cpp src/gui/popupmenu.cpp src/net/beinghandler.cpp src/npc.cpp
2009-03-02Cut down on constant streaming of attacks. Attacks from players now onlyIra Rice1-1/+1
occur on each swing action. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-02Added particle attacks back on to the players. However, instead of beingIra Rice1-0/+24
constant, particle attacks are now weapon specific, so that different weapons can have different attacks. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-18Merge commit 'aethyra/master'Bjørn Lindeijer1-24/+21
Conflicts: src/net/npchandler.cpp
2009-02-17Fixed an error reported by m0t1k4 which caused a segmentation fault onIra Rice1-24/+21
closing when displaying your own name is turned on. Signed-off-by: Ira Rice <irarice@gmail.com>