project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/EngineProtocol/PascalExports.java
author koda
Tue, 21 Jan 2014 22:43:06 +0100
changeset 10017 de822cd3df3a
parent 8538 0e113487c4b2
child 15512 45d6806548e9
permissions -rw-r--r--
fixwhitespace and dos2unix
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6047
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
     1
/*
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
     2
 * Hedgewars for Android. An Android port of Hedgewars, a free turn based strategy game
6700
e04da46ee43c the most important commit of the year
koda
parents: 6047
diff changeset
     3
 * Copyright (c) 2011-2012 Richard Deurwaarder <xeli@xelification.com>
7584
7831c84cc644 License change: With the agreement of Xeli, I changed the Hedgeroid license to
Medo <smaxein@googlemail.com>
parents: 7582
diff changeset
     4
 * Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com>
6047
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
     5
 *
7584
7831c84cc644 License change: With the agreement of Xeli, I changed the Hedgeroid license to
Medo <smaxein@googlemail.com>
parents: 7582
diff changeset
     6
 * This program is free software; you can redistribute it and/or
7831c84cc644 License change: With the agreement of Xeli, I changed the Hedgeroid license to
Medo <smaxein@googlemail.com>
parents: 7582
diff changeset
     7
 * modify it under the terms of the GNU General Public License
7831c84cc644 License change: With the agreement of Xeli, I changed the Hedgeroid license to
Medo <smaxein@googlemail.com>
parents: 7582
diff changeset
     8
 * as published by the Free Software Foundation; either version 2
7831c84cc644 License change: With the agreement of Xeli, I changed the Hedgeroid license to
Medo <smaxein@googlemail.com>
parents: 7582
diff changeset
     9
 * of the License, or (at your option) any later version.
6047
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    10
 *
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    11
 * This program is distributed in the hope that it will be useful,
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    14
 * GNU General Public License for more details.
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    15
 *
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    17
 * along with this program; if not, write to the Free Software
7584
7831c84cc644 License change: With the agreement of Xeli, I changed the Hedgeroid license to
Medo <smaxein@googlemail.com>
parents: 7582
diff changeset
    18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
6047
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    19
 */
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    20
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    21
package org.hedgewars.hedgeroid.EngineProtocol;
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    22
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    23
public class PascalExports {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    24
    public static Object engineMutex = new Object();
6047
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    25
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    26
    static{
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    27
        System.loadLibrary("SDL");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    28
        System.loadLibrary("SDL_image");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    29
        System.loadLibrary("mikmod");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    30
        System.loadLibrary("SDL_net");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    31
        System.loadLibrary("SDL_mixer");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    32
        System.loadLibrary("SDL_ttf");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    33
        System.loadLibrary("lua5.1");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    34
        System.loadLibrary("physfs");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    35
        System.loadLibrary("physlayer");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    36
        System.loadLibrary("hwengine");
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    37
    }
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    38
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    39
    public static native int HWgetMaxNumberOfTeams();
7582
714310efad8f Hedgeroid: Final sprint to the deadline
Medo <smaxein@googlemail.com>
parents: 7508
diff changeset
    40
    private static native void HWGenLandPreview(int port);
714310efad8f Hedgeroid: Final sprint to the deadline
Medo <smaxein@googlemail.com>
parents: 7508
diff changeset
    41
714310efad8f Hedgeroid: Final sprint to the deadline
Medo <smaxein@googlemail.com>
parents: 7508
diff changeset
    42
    public static void synchronizedGenLandPreview(int port) {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    43
        synchronized(engineMutex) {
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    44
            HWGenLandPreview(port);
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    45
        }
7582
714310efad8f Hedgeroid: Final sprint to the deadline
Medo <smaxein@googlemail.com>
parents: 7508
diff changeset
    46
    }
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 8538
diff changeset
    47
6047
10011f051f9c Changed package name from org.hedgewars.mobile to org.hedgewars.hedgeroid to upload it to the market
Xeli
parents:
diff changeset
    48
}