FreeCraft Configuration Language Description: Icon


     ___________		     _________		      _____  __
     \_	  _____/______   ____   ____ \_   ___ \____________ _/ ____\/  |_
      |    __) \_  __ \_/ __ \_/ __ \/    \  \/\_  __ \__  \\   __\\   __\ 
      |     \   |  | \/\  ___/\  ___/\     \____|  | \// __ \|  |   |  |
      \___  /   |__|    \___  >\___  >\______  /|__|  (____  /__|   |__|
	  \/		    \/	   \/	     \/		   \/
    ______________________                           ______________________
			  T H E   W A R   B E G I N S
	   FreeCraft - A free fantasy real time strategy game engine

(C) Copyright 2001 by The FreeCraft Project. Distributed under the "GNU General Public License"


FreeCraft Readme FAQ CCL PREV NEXT
define-icon-wc-names define-icon define-icon-alias

Intro - Introduction to icon functions and variables

Everything around the C icon structure.

Functions

define-icon-wc-names

Description

Define the mapping of the icon numbers in puds, to the icon names.

Syntax

(define-icon-wc-names icon-0 icon-1 ... icon-195)
icon-0
Name of the icon assigned to index 0 (peasant).
icon-1
Name of the icon assigned to index 1 (peon).
icon-195
Name of the icon assigned to index 195. In the original only until this number are icons defined.

Example

    (define-icon-wc-names 
      'icon-peasant 'icon-peon 'icon-footman ... )

This is the default icon mapping.

Used

$LIBARYPATH/ccl/wc2.ccl

define-icon

Description

Define an icon for the engine.

This could also be defined in own levels.

Syntax

(define-icon ident tileset type argument file) FIXME:
ident
tileset
type
argument
file

Example

    (define-icon 'icon-peasant 'tileset-summer 'normal 0 "icons (summer).png")
Define the peasant icon referenced with icon-peasant for the summer tileset. It is a normal static icon. The graphic is loaded from the file "icons (summer).png" and is the first icon in this file.

define-icon-alias

Description

Define an icon alias for an icon.

This is an alternative name for the icon.

Syntax

(define-icon-alias alias icon) FIXME:
ident
tileset

Example

    (define-icon-alias 'icon-raise-dead 'icon-skeleton)
Now it is possible to get the icon "skeleton" also with the name "icon-raise-dead".
Last changed: $Id: icon.html,v 1.2 2001/05/30 15:45:30 johns Exp $
All trademarks and copyrights on this page are owned by their respective owners.
(c) 2001 by The FreeCraft Project