Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
namedsel.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/* $Header: /Commando/Code/Tools/max2w3d/namedsel.h 4 10/28/97 6:08p Greg_h $ */
20/***********************************************************************************************
21 *** Confidential - Westwood Studios ***
22 ***********************************************************************************************
23 * *
24 * Project Name : Commando Tools - WWSkin *
25 * *
26 * $Archive:: /Commando/Code/Tools/max2w3d/namedsel.h $*
27 * *
28 * $Author:: Greg_h $*
29 * *
30 * $Modtime:: 10/21/97 2:05p $*
31 * *
32 * $Revision:: 4 $*
33 * *
34 *---------------------------------------------------------------------------------------------*
35 * Functions: *
36 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
37
38#ifndef NAMEDSEL_H
39#define NAMEDSEL_H
40
41
42#include "Max.h"
43
44/*
45** This is a class for containing bit arrays for
46** the named selection sets. I stole it from
47** the Edit Mesh modifier code...
48** It is basically a dynamically sized array
49** of bitarrays.
50*/
52{
53public:
54 Tab<BitArray*> Sets;
55 Tab<TSTR*> Names;
56
58
59 BitArray & operator[](int i) { return *Sets[i]; }
60 int Count() { return Sets.Count(); }
61
62 int Find_Set(TSTR & setname);
63 void Delete_Set(int i);
64 void Delete_Set(TSTR & setname);
65 void Reset(void);
66 void Append_Set(BitArray & nset,TSTR & setname);
67
68 IOResult Load(ILoad * iload);
69 IOResult Save(ISave * isave);
70 IOResult Load_Set(ILoad * iload);
71
72 void Set_Size(int size);
74
75 enum {
79 };
80};
81
82
83#endif /*NAMEDSEL_H*/
void Reset(void)
Definition namedsel.cpp:80
Tab< TSTR * > Names
Definition namedsel.h:55
IOResult Load_Set(ILoad *iload)
Definition namedsel.cpp:167
IOResult Save(ISave *isave)
Definition namedsel.cpp:121
int Find_Set(TSTR &setname)
Definition namedsel.cpp:110
Tab< BitArray * > Sets
Definition namedsel.h:54
BitArray & operator[](int i)
Definition namedsel.h:59
void Delete_Set(int i)
Definition namedsel.cpp:63
NamedSelSetList & operator=(NamedSelSetList &from)
Definition namedsel.cpp:94
IOResult Load(ILoad *iload)
Definition namedsel.cpp:144
void Append_Set(BitArray &nset, TSTR &setname)
Definition namedsel.cpp:52
void Set_Size(int size)
Definition namedsel.cpp:87