project_files/frontlib/model/room.h
author Periklis Ntanasis <pntanasis@gmail.com>
Fri, 12 Jul 2013 12:00:30 +0300
branchspacecampaign
changeset 9334 4bf3edc24444
parent 8262 f01702bfb764
child 8330 aaefa587e277
permissions -rw-r--r--
custom stats in moon mission
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7338
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     1
/*
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     2
 * Hedgewars, a free turn based strategy game
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     3
 * Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com>
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     4
 *
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     6
 * modify it under the terms of the GNU General Public License
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     7
 * as published by the Free Software Foundation; either version 2
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     8
 * of the License, or (at your option) any later version.
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
     9
 *
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    13
 * GNU General Public License for more details.
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    14
 *
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    16
 * along with this program; if not, write to the Free Software
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    18
 */
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    19
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    20
/**
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    21
 * Models the room information for the lobby roomlist.
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    22
 */
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    23
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    24
#ifndef ROOM_H_
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    25
#define ROOM_H_
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    26
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    27
#include <stdbool.h>
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    28
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    29
typedef struct {
8262
f01702bfb764 fix some comments and add basic doxygen file
sheepluva
parents: 8260
diff changeset
    30
    bool inProgress;	//!< true if the game is running
7338
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    31
    char *name;
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    32
    int playerCount;
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    33
    int teamCount;
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    34
    char *owner;
8262
f01702bfb764 fix some comments and add basic doxygen file
sheepluva
parents: 8260
diff changeset
    35
    char *map;			//!< This is either a map name, or one of +rnd+, +maze+ or +drawn+.
7338
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    36
    char *scheme;
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    37
    char *weapons;
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    38
} flib_room;
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    39
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    40
void flib_room_destroy();
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    41
1ed603a54ebd frontlib:
Medo <smaxein@googlemail.com>
parents:
diff changeset
    42
#endif