[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src include/unit.h unit/ccl_unit.c un...
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src include/unit.h unit/ccl_unit.c un... |
Date: |
4 Jan 2004 09:31:53 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/01/04 09:31:52
Modified files:
src/include : unit.h
src/unit : ccl_unit.c unit.c
Log message:
SaveOrder and CclParseOrder are global
Patches:
Index: stratagus/src/include/unit.h
diff -u stratagus/src/include/unit.h:1.242 stratagus/src/include/unit.h:1.243
--- stratagus/src/include/unit.h:1.242 Fri Jan 2 11:36:31 2004
+++ stratagus/src/include/unit.h Sun Jan 4 09:31:50 2004
@@ -5,12 +5,12 @@
// /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
// \/ \/ \//_____/ \/
// ______________________ ______________________
-// T H E W A R B E G I N S
-// Stratagus - A free fantasy real time strategy game engine
+// T H E W A R B E G I N S
+// Stratagus - A free fantasy real time strategy game engine
//
/address@hidden unit.h - The unit headerfile. */
//
-// (c) Copyright 1998-2003 by Lutz Sammer and Jimmy Salmon
+// (c) Copyright 1998-2004 by Lutz Sammer and Jimmy Salmon
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit.h,v 1.242 2004/01/02 00:36:31 jsalmon3 Exp $
+// $Id: unit.h,v 1.243 2004/01/03 22:31:50 jsalmon3 Exp $
#ifndef __UNIT_H__
#define __UNIT_H__
@@ -368,6 +368,7 @@
#include "upgrade_structs.h"
#include "upgrade.h"
#include "construct.h"
+#include "ccl.h"
#ifdef USE_SDL_SURFACE
#include "SDL.h"
@@ -859,6 +860,8 @@
/// Generate a unit reference, a printable unique string for unit
extern char* UnitReference(const Unit*);
+ /// Save an order
+extern void SaveOrder(const Order* order, CLFile* file);
/// save unit-structure
extern void SaveUnit(const Unit* unit,CLFile* file);
/// save all units
@@ -1063,6 +1066,8 @@
// in ccl_unit.c
+ /// Parse order
+extern void CclParseOrder(lua_State* l, Order* order);
/// register CCL units features
extern void UnitCclRegister(void);
Index: stratagus/src/unit/ccl_unit.c
diff -u stratagus/src/unit/ccl_unit.c:1.90 stratagus/src/unit/ccl_unit.c:1.91
--- stratagus/src/unit/ccl_unit.c:1.90 Sat Jan 3 16:39:22 2004
+++ stratagus/src/unit/ccl_unit.c Sun Jan 4 09:31:51 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: ccl_unit.c,v 1.90 2004/01/03 05:39:22 jsalmon3 Exp $
+// $Id: ccl_unit.c,v 1.91 2004/01/03 22:31:51 jsalmon3 Exp $
//@{
@@ -167,7 +167,7 @@
** @param list All options of the order.
** @param order OUT: resulting order.
*/
-local void CclParseOrder(lua_State* l, Order* order)
+global void CclParseOrder(lua_State* l, Order* order)
{
const char* value;
int args;
Index: stratagus/src/unit/unit.c
diff -u stratagus/src/unit/unit.c:1.354 stratagus/src/unit/unit.c:1.355
--- stratagus/src/unit/unit.c:1.354 Sat Jan 3 11:59:59 2004
+++ stratagus/src/unit/unit.c Sun Jan 4 09:31:51 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: unit.c,v 1.354 2004/01/03 00:59:59 jsalmon3 Exp $
+// $Id: unit.c,v 1.355 2004/01/03 22:31:51 jsalmon3 Exp $
//@{
@@ -3321,7 +3321,7 @@
** @param order Order who should be saved.
** @param file Output file.
*/
-local void SaveOrder(const Order* order, CLFile* file)
+global void SaveOrder(const Order* order, CLFile* file)
{
char* ref;
@@ -3702,7 +3702,7 @@
int j;
CLprintf(file, "\n--- -----------------------------------------\n");
- CLprintf(file, "--- MODULE: units $Id: unit.c,v 1.354 2004/01/03
00:59:59 jsalmon3 Exp $\n\n");
+ CLprintf(file, "--- MODULE: units $Id: unit.c,v 1.355 2004/01/03
22:31:51 jsalmon3 Exp $\n\n");
#if 0
//
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src include/unit.h unit/ccl_unit.c un...,
address@hidden <=