(*
* Hedgewars, a worms-like game
* Copyright (c) 2005, 2006 Andrey Korotaev <unC0Rr@gmail.com>
*
* 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
* the Free Software Foundation; version 2 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*)
unit uLandTemplates;
interface
uses SDLh, uFloat;
{$INCLUDE options.inc}
type PPointArray = ^TPointArray;
TPointArray = array[0..64] of TSDL_Rect;
TEdgeTemplate = record
BasePoints: PPointArray;
BasePointsCount: Longword;
FillPoints: PPointArray;
FillPointsCount: Longword;
canMirror, canFlip: boolean;
end;
const Template0Points: array[0..17] of TSDL_Rect =
(
(x: 410; y: 1024; w: 1; h: 1),
(x: 160; y: 760; w: 130; h: 170),
(x: 342; y: 706; w: 316; h: 150),
(x: 238; y: 386; w: 270; h: 180),
(x: 246; y: 176; w: 242; h: 156),
(x: 622; y: 128; w: 480; h: 300),
(x: 806; y: 468; w: 152; h: 324),
(x: 650; y: 1024; w: 500; h: 1),
(x: 1250; y: 1100; w: 1; h: 1),
(x: 1490; y: 1024; w: 1; h: 1),
(x: 1452; y: 904; w: 74; h: 12),
(x: 1248; y: 575; w: 68; h: 425),
(x: 1426; y: 592; w: 140; h: 142),
(x: 1310; y: 192; w: 150; h: 350),
(x: 1588; y: 194; w: 148; h: 332),
(x: 1618; y: 472; w: 276; h: 314),
(x: 1710; y: 850; w: 130; h: 86),
(x: 1734; y: 1024; w: 1; h: 1)
);
Template0FPoints: array[0..0] of TPoint =
(
(x: 1023; y: 0)
);
const EdgeTemplates: array[0..0] of TEdgeTemplate =
(
(BasePoints: @Template0Points;
BasePointsCount: Succ(High(Template0Points));
FillPoints: @Template0FPoints;
FillPointsCount: Succ(High(Template0FPoints));
canMirror: false; canFlip: false;
)
);
implementation
end.