--- crossfire/common ---


Protocol:pserver User:anonymous
Machine:crossfire.cvs.sourceforge.net CVSROOT:/cvsroot/crossfire

Filename: anim.c
Revision 1.22ryo_saeba 2006/03/18 09:05:31 +7 -6
Massive cleaning of code. Shouldn't be any functional change.
Show difference between Revision 1.21 and 1.22
Revision 1.21akirschbaum 2006/02/08 18:48:36 +2 -2
Apply patch #1427979 (code-cleanup: add const, fix warnings) by Stefan
Huehner.
Show difference between Revision 1.20 and 1.21
Revision 1.20akirschbaum 2005/12/05 17:34:03 +3 -3
Apply patch #1371956 (code cleanup patch) by Stefan Huehner: fix old-style
function declarations and prototypes to proper Ansi C syntax. This patch
allows the compiler to check function arguments and also removes some warnings
when compiling with -Wstrict-prototypes.
Show difference between Revision 1.19 and 1.20
Revision 1.19ryo_saeba 2005/11/27 08:16:45 +2 -2
Add a filter to skills command
Show difference between Revision 1.18 and 1.19
Revision 1.18akirschbaum 2005/09/04 11:58:12 +2 -3
common/{anim.c, image.c, los.c, map.c, porting.c, treasure.c},
include/define.h, random_maps/treasure.c,
server/{apply.c, c_misc.c, c_object.c, c_wiz.c, commands.c, daemon.c,
hiscore.c, init.c, login.c, player.c, plugins.c, resurrection.c, weather.c},
socket/{init.c, item.c, loop.c, lowlevel.c}: Use LOG() for error messages and
debug output instead of stdout/stderr. Include filename in error messages.
server/resurrection.c: Fix error message in read_player().
Show difference between Revision 1.17 and 1.18
Revision 1.17ryo_saeba 2005/08/12 08:46:34 +2 -2
Fields changed from char* to const char*, cleanup.
Show difference between Revision 1.16 and 1.17
Revision 1.16mwedel 2003/09/13 00:01:26 +9 -5
Updated code for skill + spell code. skills and spells are now objects.
tuning these now means changing the archetypes. New spells can now
be added just by making a new archetype. Lots of code cleanup
also done.
MSW 2003-09-12
Show difference between Revision 1.15 and 1.16
Revision 1.15mwedel 2003/05/26 00:28:55 +12 -4
common/anim.c: Patch by AV to make sure multipart monsters animations
stay in sync. MSW 2003-05-25
Show difference between Revision 1.14 and 1.15
Revision 1.14mwedel 2003/03/19 02:04:48 +8 -4
common/anim.c: Pass direction to animate_object() - needed for player
animations as player's facing may not match direction.
crossedit/Attr.c, server/main.c, server/time.c: Update calls to animate_object()
include/libproto.h: rebuilt
include/newserver.h, plugin_animator/animator_box.c, socket/init.c,
socket/request.c: Remove newanim field from socket structure - not needed -
how to animate is determined by object, not by socket.
server/move.c: Add check to P_OUT_OF_MAP in teleport function.
server/player.c: change move_player to call animate_object, so it gets full
power of functionality it supports instead of 4 way hardcode animation
information.
server/spell_effect.c: When altars are consecrated, don't look to arch name
for first portion of name - always call them Altar of %s - fixes problem
where altar is special god altar that has god's name in archetype, resulting
in altar of .. of ...
MSW 2003-03-18
Show difference between Revision 1.13 and 1.14
Revision 1.13mwedel 2003/02/24 01:38:38 +3 -2
common/anim.c: Fix for 8 way facing animations.
lib/treasures: Add sheep treasures
lib/* (rest) - rebuilt
server/spell_effect.c: Fix up counterspell - mainly fix a bug in that if
counterspell hit a multipart magic that used magic as an attacktype,
it would also crash. However, code also woudln't work properly on
tiled maps, and I'm dubious if it would work properly if there was more
than one effect on a space.
MSW 2003-02-23
Show difference between Revision 1.12 and 1.13
Revision 1.12mwedel 2002/07/14 23:25:39 +3 -3
Update banner copyright with proper contact information.
MSW 2002-07-14
Show difference between Revision 1.11 and 1.12
Revision 1.11garbled 2002/01/02 00:53:23 +11 -80
Backout of Anim25 patch by michtoen. It was causing server crashes, and
is generally not useful in a non-iso crossfire. Discussed w/ mwedel.
Show difference between Revision 1.10 and 1.11
Revision 1.10michtoen 2001/11/27 22:44:41 +54 -29
Anim25 Patch

This patch do this things mainly:

- include same animation sheme for players and monster again
- introduce guard/walk/fight animation in 8 direction
- direct action: monster change from guard/walk animation
when they get attacked and fall back to walk or guard when
the enemy is gone
- Monster do "intelligent" animation
-> facing enemy
-> turn and run when scared
- fixed some animation flaws which invokes late anim
update (monster moves first and hold one frame old facing)
- Include real time player animation!
-> player starts moving animation when player moves
-> fall back to guard anim when player do nothing
-> plays fight anim when hit some

Hope i got all. This patch is much not so hard as it sounds.
Most of these features was easy to include because the old
anim engine was able to do about 80% of this. I had just to
boost up the logic.
Show difference between Revision 1.9 and 1.10
Revision 1.9michtoen 2001/11/04 14:22:55 +0 -0
One Arch/one pic patch.

I use a modified map1cmd, called map2cmd
for it.

This is a first tryout implementation.
The code can more then only submit offset data
of multi arch, its also possible to include animation
tags for the faces - we have now more free flags.

The code is NOT optimized. Iam still unsure , what
the best way is to send all this data. Sort & parsing
cost time. At this stage, ill quick parse is by server,
use slightly more bandwitch and let do the client more
work. But thats perhaps not the best way.

But this code will allow to install the arches for this
one arch/one pic.

MT
Show difference between Revision 1.8 and 1.9
Revision 1.8michtoen 2001/11/02 12:39:23 +52 -8
Extended Animation Facings 18
This is the first step of complexer
animation system (usable for flat & iso).

This is not a fully clean implementation,
because it depends on "one arch / one picture"
which hopefully comes soon.

MT02102001
Show difference between Revision 1.7 and 1.8
Revision 1.7mwedel 2001/07/13 23:04:53 +2 -2
common/Makefile.in: Remove ltostr.c and sqrt.c from list of files
common/ltostr.c, common/sqrt.c: Moved into porting.c
common/anim.c, common/button.c, common/item.c: Update calls to update_object
common/living.c: have fix_player calculate light value for player/monster.
common/logger.c: Remove code that has server exit if too many LOG messages
happen too quickly. This was not a reliable mechanism, and it should
really be up to the functions doing the logging to know if they can
continue or not.
common/los.c: Changes on how it deals with lighting on maps - get light
value from map space array instead of using the linked list. Functions
that managed the light list have been removed. Change logic of
line of sight function to be more efficient (before, we may examine
the same space multiple times). rename update_all_los to
update_all_map_los, and change update_all_los to take coordinates
so that we only have clients within view of the change recalculate
los. Also, have update_all_los check for tiled maps that may have
clients that need to get updated.
common/map.c: remove refresh_map - this used to be used to try to recover
from map errors if many_cores was not set - IMO better to core and
just restart and really fix the error than try to deal with possible
corruption that may otherwise result.
Move open_and_uncompress and close_and_delete functions to porting.c -
they are 'common' functions that are not related to the map code.
Remove some lighting related code, as that is no longer done with
a list. Many modifications because of new map structure. And
logic to load and save the new map structure format. Modify
many of the functions to take map tiling into account. Change
way multipart objects are saved, and add logic to relink objects
when maps are loaded up. Remove some functions that are only
used by the editor into the editor. Move update_position from
object.c to map.c as it is better placed in map.c. Modify
function to figure out light for a space. Make out_of_map a
function that knows about map tiling. New function - get_map_from_coord
which knows about map tiling and does coordinate and map translation.
common/object.c: Have update_object take another parameter which tells
update object what has changed about the object. This lets the function
know if it should call update_position right away or if it can just
mark the space as needing an update at a later time. move update_position
to map.c.
insert_ob_in_map: now takes another parameter that describes actions not
to do. modified to know about map tiling and do appropriate translation.
Does some object sorting so it should handle spell objects more
efficiently.
insert_ob_in_map_simple is now replaced by
using appropriate flag to this changed version of insert_ob_in_map.
Clean up remove_ob - seemed to have done things in a more complicated
fashion that is no longer necessary. Modify check_walk_on to look
at all objects on space, not those below the object - with changes to
insert_ob_in_map, new object won't always be on top.
common/porting.c: functions from ltostr.c, sqrt.c, as open_and_uncompress
close_and_delete, make_path_to_file from map.c
common/treasure.c: Modified to use updated insert_ob_in_map
MSW 2001-07-13
Show difference between Revision 1.6 and 1.7
Revision 1.6mwedel 2001/05/12 18:55:24 +2 -2
anim.c, map.c, object.c: various enhancements for memory debugging/leak
detection.
doc/programming_guide: some updates on comments and indentation style.
MSW 2001-05-12
Show difference between Revision 1.5 and 1.6
Revision 1.5mwedel 2001/05/09 01:58:11 +11 -1
Various improvements to make finding memory leaks easier.
common/anim.c: Add free_all_anim function
common/arch.c: Modify free_all_arch to free more data
common/init.c: If running under MEMORY_DEBUG, don't pre-allocate objects.
common/map.c: Add free_all_maps functiion.
common/object.c: Modify object allocations if using MEMORY_DEBUG to only
malloc one object at a time, and not pre-allocate objects.
common/readable.c: Fix memory leak.
common/shstr.c: Include autoconf.h so it can pull in dmalloc.h file.
include/config.h: Remove notes of what was removed a long time ago.
Add MEMORY_DEBUG option.
include/libproto.h, include/sockproto.h, include/sproto.h: automatic rebuild
server/c_misc.c: Fix 'malloc info command so it reports right memory total
for maps. Add command_style_map_info which sums up memory used by
style maps.
server/commands.c: Add style_info wiz command which dumps memory usage
for style maps.
server/init.c: Have sighup handler call cleanup function.
server/main.c: Fix clean_tmp_files which could result in crash if one
of the maps in memory has 0 reset time. Modify cleanup function
to free more data.
server/player.c: op_on_battleground: Fix compile warning about unuused variable.
socket/init.c: Change name of free_all_ericserver to free_all_newserver,
have it free all face data.
MSW 2001-05-08
Show difference between Revision 1.4 and 1.5
Revision 1.4cvs 2001/01/23 23:01:36 +6 -2
MSW 2001/01/23:
Various cleanups/fixes as detected by purify:
common/anim.c: animation[0] was given a null pointer as the name, but
bsearch/or comparison function will try to de-reference it.
Give it a unique name.
common/loader.l: msgbuf was being used initialized in the main loading
function. loader.c also regenerated.
common/object.c: find_free functions were not checking to see if the
spaces they were examining were out of the map. Added checks
to do so.
server/apply.c: buf was being used initialized in the function.
socket/init.c: input buffer needs to be initialized as we do a
strncasecmp against the buffer which may not have any data in it.
Show difference between Revision 1.3 and 1.4
Revision 1.3cvs 2000/06/13 22:57:47 +3 -2
common/anim.c: animation_object() - return if object does not have a valid
animation after logging error. Before, we logged the error and would
promptly crash. MSW 6/13/2000
Show difference between Revision 1.2 and 1.3
Revision 1.2cvs 1999/07/13 01:02:41 +0 -0

Global commit for 0.95.4 - most files have no changes but just have
differing headers between my local RCS and the CVS versions and need to
get synced up.
Show difference between Revision 1.1 and 1.2
Revision 1.1uid200 1999/04/02 13:10:03 None
Initial revision
First version
Revision 1.1.1.1uid200 1999/04/02 13:10:03 +0 -0
First CVS revsion: crossfire-0.95.3
Show difference between Revision 1.1 and 1.1.1.1


File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:05