summaryrefslogtreecommitdiff
path: root/src/being.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-09-22Added support for the go-through-walls case with mouse movement on TMWserv.Bertram1-3/+1
Also removed an (now) unuseful debug piece of information. Thanks Kage for reporting this case.
2009-09-22Mostly fixed the mouse movement in TMWserv client.Bertram1-6/+6
The only case left in mouse movement is that the client doesn't check for walkability of the destination point when you click on a unwalkable point. Let me explain this NASTY bug: The bug remained in the Being::SetDestination() function, when recalculating the path from tiles to pixels. The changeX and changeY variables went crazy when (endX - startX) gave a negative value. That why the given path became random, and the player went anywhere. This didn't happened to monsters, NPCs, and when walking using the keyboard because the patnodes system isn't used for movement up to 1 tile at a time. I removed some dead code (in viewpoint.cpp), made the keyboard navigation a little bit more bearable, and fixed this client bug. Now, I'll be up to finish fixing the movement system using mouse (What's remaining is a joke next to what I had to do to discover this...), and I'll look at a third time to the keyboard system which is a bit raw, just for now... Regards, P.S.: Kage, I'd like to get a three-cheese pizza!
2009-09-17Partially (but mainly) resolved Mantis #753 by making monsters, NPC, and ↵Bertram1-0/+18
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-13Clean up Being and it's derivativesJared Adams1-64/+83
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-07Gettext fixesKess Vargavind1-1/+0
Trying to use the same kind of capitalization and interpunctuation for various parts of the gui, melding a few split strings, updating POTFILES.in and adding translators' notes.
2009-08-01Fixes pickup items on eA, also cleaned up some codeChuck Miller1-9/+6
2009-08-01Remove some unused movement methodsChuck Miller1-24/+8
2009-07-27Fix compile warnings from last commitJared Adams1-1/+1
2009-07-01Remove complex path finding for players. Add a simple path finding algorithm ↵Roderic Morris1-6/+14
to map.
2009-06-26Fixes the walk after death on TMWServ buildsChuck Miller1-33/+36
2009-06-23Made so monster particle effects show up on eAChuck Miller1-6/+2
I also removed Being::handleAttack() and Monster::handleAttack() for TMWserv since they are not used
2009-06-08Merge being direction handling codeJared Adams1-24/+2
2009-06-08Remove some unused variablesJared Adams1-2/+0
2009-06-08Remove duplicate code from BeingJared Adams1-41/+0
2009-05-29Some movement fixes for TMWServ build.Chuck Miller1-152/+44
Looked pretty good so I removed annoying debug information. Also should note that movement between two players is still off.
2009-05-17Fix offsets (16,32) on TextEffects for damage, pickup and exp.Dennis Friis1-1/+1
2009-05-10Made overhead text the default instead of the bubblesBjørn Lindeijer1-2/+2
This is most similar to the way 0.0.28.1 was, and the bubbles still have some style and readability issues.
2009-05-09Increased the distance between head and overhead text a bitBjørn Lindeijer1-5/+5
Plus some small code cleanups.
2009-05-05Remove debug code that was accidentally committedJared Adams1-37/+0
2009-05-05Remove extra check on player targetJared Adams1-0/+37
~Being does this too, so let's leave it there.
2009-05-04Check to see if their is a victim before sending a arrowChuck Miller1-1/+1
2009-05-04Prevented crash when arrow particle effect does not exist or has an error.Philipp Sehmisch1-3/+6
2009-05-04Fixed crash when no weapon is equipped and fixed height of arrow targetPhilipp Sehmisch1-1/+2
2009-05-03Added rotational particles, and added code to show arrows when a player ↵Chuck Miller1-1/+16
shoots them.
2009-05-03Moved mIsGM from Being to Player and made isGM() constBjørn Lindeijer1-1/+0
2009-03-27Fixed selection shadow not to overlap the emoticonsBjørn Lindeijer1-2/+2
Also fixed positioning for emoticons above the player sprite. Mantis-issue: 675
2009-03-27Fixed some positioning issuesBjørn Lindeijer1-27/+32
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-43/+16
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-27Merge branch 'aethyra/master'Bjørn Lindeijer1-3/+2
Conflicts: src/beingmanager.cpp src/gui/confirm_dialog.cpp src/gui/inventorywindow.cpp src/gui/inventorywindow.h src/gui/label.cpp src/gui/label.h src/gui/popup.cpp src/gui/popup.h src/gui/scrollarea.cpp src/gui/skin.cpp src/gui/skin.h src/gui/speechbubble.cpp src/gui/window.cpp src/gui/window.h src/localplayer.h src/main.cpp src/net/ea/playerhandler.cpp src/resources/ambientoverlay.h src/resources/dye.cpp src/resources/imagewriter.cpp src/resources/itemdb.cpp src/shopitem.cpp
2009-03-26Fixed duplicate check for item namesBjørn Lindeijer1-1/+1
2009-03-25Merged relevent changes from TMW commitIra Rice1-20/+5
dfcc6397848d4597b386b688f689352de6c19ae2 Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-26Remove redundancy, fix variable names and other code cleanupsBjørn Lindeijer1-20/+4
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-135/+95
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-5/+6
Conflicts: Many files.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-11/+304
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-12Make use of the new available colorsMajin Sniper1-25/+16
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-23/+14
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-12Made hair load again (commit e2d60401eaf55abe9e2251854f3174ffe0f4ad9eIra Rice1-2/+14
from TMW broke this, as it deleted the Being::load() method, which also loaded the hair styles). Also removed some unused variables in the being class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Move emote sprite loading into EmoteDBJared Adams1-29/+1
2009-03-12Move emote sprite loading into EmoteDBJared Adams1-23/+2
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams1-29/+27
2009-03-11Remove some duplication in hair loading codeJared Adams1-52/+23
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams1-29/+27
2009-03-10Extended hit type handlingsniper1-31/+24
The client can now differentiate between the following hit types: - hit (normal) - critical (full attack) - multi (more than one hit at once, currently not used) - reflect (reflected damage, currently not used) - flee (dodging criticals) The Being's showCrit method is now merged into takeDamage. Being's takeDamage and handleAttack now both get the opponent, the amount of damage and the attack type as parameter.
2009-03-10Extended hit type handlingsniper1-17/+37
The client can now differentiate between the following hit types: - hit (normal) - critical (full attack) - multi (more than one hit at once, currently not used) - reflect (reflected damage, currently not used) - flee (dodging criticals) The Being's showCrit method is now merged into takeDamage. Being's takeDamage and handleAttack now both get the opponent, the amount of damage and the attack type as parameter.
2009-03-06Merge branch 'aethyra/master'Bjørn Lindeijer1-41/+20
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-05Made some optimizations based on some profiling done by Octalot, as wellIra Rice1-41/+20
as some other optimizations that I could see that cut down on some unneeded redraws, which in turn improved frame rates slightly. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-05Got rid of Sint{8,16,32} and Uint32 for being IDBjørn Lindeijer1-1/+1
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
2009-03-06Got rid of Sint{8,16,32} and Uint32 for being IDBjørn Lindeijer1-1/+1
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
2009-02-26Merge branch 'aethyra/master'Bjørn Lindeijer1-5/+21
Conflicts: data/graphics/images/login_wallpaper.png src/being.cpp src/beingmanager.cpp src/engine.cpp src/game.cpp src/gui/buysell.cpp src/gui/buysell.h src/gui/gui.h src/gui/npc_text.cpp src/gui/npc_text.h src/gui/npcintegerdialog.cpp src/gui/npclistdialog.cpp src/gui/npclistdialog.h src/gui/npcstringdialog.cpp src/gui/sell.cpp src/gui/shop.cpp src/gui/table.cpp src/net/beinghandler.cpp src/net/npchandler.cpp src/net/playerhandler.cpp src/npc.cpp src/npc.h src/shopitem.cpp src/shopitem.h src/utils/stringutils.cpp src/utils/stringutils.h src/utils/trim.h