$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

src/unit/unit_save.cpp File Reference

#include <sstream>
#include <iomanip>
#include "stratagus.h"
#include "unit.h"
#include "unittype.h"
#include "unit_manager.h"
#include "player.h"
#include "animation.h"
#include "spells.h"
#include "construct.h"
#include "iolib.h"

Functions

unit_save.cpp - Save unit.
std::string UnitReference (const CUnit &unit)
 Generate a unit reference, a printable unique string for unit.
void SaveOrder (const COrderPtr order, CFile *file)
 Save an order.
void SaveUnit (const CUnit &unit, CFile *file)
 save unit-structure
void SaveUnits (CFile *file)
 save all units

Function Documentation

void SaveOrder ( const COrderPtr  order,
CFile file 
)

Save an order.

Save an order.

Parameters:
order Order who should be saved.
file Output file.

void SaveUnit ( const CUnit unit,
CFile file 
)

save unit-structure

Save the state of a unit to file.

Parameters:
unit Unit pointer to be saved.
file Output file.

void SaveUnits ( CFile file  ) 

save all units

Save state of units to file.

Parameters:
file Output file.

std::string UnitReference ( const CUnit unit  ) 

Generate a unit reference, a printable unique string for unit.

Generate a unit reference, a printable unique string for unit.

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.