[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/unit unit_cache.c unittype.c upgr...
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/unit unit_cache.c unittype.c upgr... |
Date: |
24 Jan 2004 10:43:58 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/24 10:43:58
Modified files:
src/unit : unit_cache.c unittype.c upgrade.c
Log message:
Documentation and Debugoutput upgrades
Patches:
Index: stratagus/src/unit/unit_cache.c
diff -u stratagus/src/unit/unit_cache.c:1.44
stratagus/src/unit/unit_cache.c:1.45
--- stratagus/src/unit/unit_cache.c:1.44 Fri Jan 16 02:15:09 2004
+++ stratagus/src/unit/unit_cache.c Sat Jan 24 10:43:57 2004
@@ -30,7 +30,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit_cache.c,v 1.44 2004/01/15 15:15:09 nobody_ Exp $
+// $Id: unit_cache.c,v 1.45 2004/01/23 23:43:57 wizzard Exp $
//@{
@@ -88,7 +88,7 @@
return;
}
}
- DebugLevel0Fn("Try to remove unit not in cache.\n");
+ DebugLevel0Fn("Try to remove unit not in cache. (%d)\n" _C_ unit->Slot);
}
/**
@@ -285,7 +285,7 @@
listitem->Prev->Next = listitem->Next;
} else {
if (mf->UnitCache != listitem) {
- DebugLevel0Fn("Try to remove unit not
in cache. It's ok, mostly.\n");
+ DebugLevel0Fn("Try to remove unit not
in cache. (%d)\n" _C_ unit->Slot);
}
// item is head of the list.
mf->UnitCache = listitem->Next;
Index: stratagus/src/unit/unittype.c
diff -u stratagus/src/unit/unittype.c:1.149 stratagus/src/unit/unittype.c:1.150
--- stratagus/src/unit/unittype.c:1.149 Thu Jan 22 07:01:30 2004
+++ stratagus/src/unit/unittype.c Sat Jan 24 10:43:57 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unittype.c,v 1.149 2004/01/21 20:01:30 jsalmon3 Exp $
+// $Id: unittype.c,v 1.150 2004/01/23 23:43:57 wizzard Exp $
//@{
@@ -1187,7 +1187,7 @@
// char** sp;
CLprintf(file, "\n--- -----------------------------------------\n");
- CLprintf(file, "--- MODULE: unittypes $Id: unittype.c,v 1.149
2004/01/21 20:01:30 jsalmon3 Exp $\n\n");
+ CLprintf(file, "--- MODULE: unittypes $Id: unittype.c,v 1.150
2004/01/23 23:43:57 wizzard Exp $\n\n");
#if 0
// Original number to internal unit-type name.
@@ -1280,13 +1280,14 @@
/**
** Draw unit-type on map.
**
-** @param type Unit-type pointer.
-** @param frame Animation frame of unit-type.
-** @param x Screen X pixel postion to draw
unit-type.
-** @param y Screen Y pixel postion to draw
unit-type.
+** @param type Unit-type pointer.
+** @param frame Animation frame of unit-type.
+** @param sprite Sprite to use for drawing
+** @param x Screen X pixel postion to draw unit-type.
+** @param y Screen Y pixel postion to draw unit-type.
**
-** @todo Do screen position caculation in high level.
-** Better way to handle in x mirrored sprites.
+** @todo Do screen position caculation in high level.
+** Better way to handle in x mirrored sprites.
*/
global void DrawUnitType(const UnitType* type, Graphic* sprite, int frame, int
x, int y)
{
Index: stratagus/src/unit/upgrade.c
diff -u stratagus/src/unit/upgrade.c:1.75 stratagus/src/unit/upgrade.c:1.76
--- stratagus/src/unit/upgrade.c:1.75 Fri Jan 23 05:12:30 2004
+++ stratagus/src/unit/upgrade.c Sat Jan 24 10:43:57 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: upgrade.c,v 1.75 2004/01/22 18:12:30 nobody_ Exp $
+// $Id: upgrade.c,v 1.76 2004/01/23 23:43:57 wizzard Exp $
//@{
@@ -549,7 +549,7 @@
int j;
CLprintf(file, "\n;;; -----------------------------------------\n");
- CLprintf(file, ";;; MODULE: upgrades $Id: upgrade.c,v 1.75 2004/01/22
18:12:30 nobody_ Exp $\n\n");
+ CLprintf(file, ";;; MODULE: upgrades $Id: upgrade.c,v 1.76 2004/01/23
23:43:57 wizzard Exp $\n\n");
//
// Save all upgrades
@@ -676,7 +676,7 @@
/**
** Define a new upgrade modifier.
**
-** @param list List of modifiers.
+** @param l List of modifiers.
*/
local int CclDefineModifier(lua_State* l)
{
@@ -834,7 +834,7 @@
/**
** Define a new upgrade.
**
-** @param list List defining the upgrade.
+** @param l List defining the upgrade.
*/
local int CclDefineUpgrade(lua_State* l)
{
@@ -974,7 +974,7 @@
/**
** Define upgrade mapping from original number to internal symbol
**
-** @param list List of all names.
+** @param l List of all names.
*/
local int CclDefineUpgradeWcNames(lua_State* l)
{
@@ -1028,19 +1028,20 @@
/**
** Add a upgrade modifier.
**
-** @param uid Upgrade identifier of the modifier.
-** @param attack_range Attack range modification.
-** @param sight_range Sight range modification.
-** @param basic_damage Basic damage modification.
-** @param piercing_damage Piercing damage modification.
-** @param armor Armor modification.
-** @param speed Speed modification (Currently not possible).
-** @param hit_points Hitpoint modification.
-** @param costs Costs modification.
-** @param units Changes in allowed units.
-** @param af_upgrades Changes in allow upgrades.
-** @param apply_to Applies to this units.
-** @param convert_to Converts units to this unit-type.
+** @param uid Upgrade identifier of the modifier.
+** @param attack_range Attack range modification.
+** @param sight_range Sight range modification.
+** @param basic_damage Basic damage modification.
+** @param piercing_damage Piercing damage modification.
+** @param armor Armor modification.
+** @param speed Speed modification (Currently not possible).
+** @param hit_points Hitpoint modification.
+** @param regeneration_rate Regenerations modification.
+** @param costs Costs modification.
+** @param units Changes in allowed units.
+** @param af_upgrades Changes in allow upgrades.
+** @param apply_to Applies to this units.
+** @param convert_to Converts units to this unit-type.
**
** @return upgrade modifier id or -1 for error
** (actually this id is useless, just error checking)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/unit unit_cache.c unittype.c upgr...,
address@hidden <=