Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-10-2011, 02:26 PM
Octocat Octocat is offline
Approved Member
 
Join Date: Dec 2011
Posts: 22
Default

Code:
int armyPlayer = GamePlay.gpPlayer().Army();
int armyRed = 1;
int armyBlue = 2;
Full interfaces:

Code:
namespace maddox.game
{
  public interface Player
  {
    int Army();                           // Player army
    bool AutopilotPrimary();
    bool AutopilotSecondary();
    int Channel();
    string ConnectAddress();
    int ConnectPort();
    bool IsConnected();
    bool IsExpelArmy(int army);
    bool IsExpelUnit(AiActor unit);
    string LanguageName();
    string Name();
    AiPerson PersonPrimary();
    AiPerson PersonSecondary();
    int Ping();
    AiActor Place();
    void PlaceEnter(AiActor actor, int indxPlace);
    void PlaceLeave(int indxPlace);
    int PlacePrimary();
    int PlaceSecondary();
    void SelectArmy(int army);
  }

  public interface IGamePlay
  {
    AiActor gpActorByName(string actorName);
    bool gpActorIsValid(AiActor actor);
    AiAirGroup gpAiAirGroup(int ID, int army);
    AiAirGroup[] gpAirGroups(int Army);
    AiAirport[] gpAirports();
    int[] gpArmies();                                    //All armies
    string gpArmyName(int army);
    void gpAviPlay(string args);
    bool gpBattleIsRun();
    void gpBattleStop();
    AiBirthPlace[] gpBirthPlaces();
    ISectionFile gpConfigUserFile();
    ISectionFile gpCreateSectionFile();
    ISectionFile gpCreateSectionFile(string line, out string firstWord);
    DifficultySetting gpDifficultyGet();
    IRecalcPathParams gpFindPath(Point2d a, double ra, Point2d b, double rb, PathType type, int army);
    int gpFrontArmy(double x, double y);
    double gpFrontDistance(int army, double x, double y);
    bool gpFrontExist();
    AiAction gpGetAction(string name);
    AiTrigger gpGetTrigger(string name);
    AiGroundGroup[] gpGroundGroups(int Army);
    void gpHUDLogCenter(string msg);
    void gpHUDLogCenter(Player[] to, string msg);
    void gpHUDLogCenter(Player[] to, string msg, object[] parms);
    void gpHUDLogCenter(Player[] to, string msg, object[] parms, double lifeTime);
    object[] gpInvoke(object[] args);
    bool gpIsServerDedicated();
    bool gpIsServerSingle();
    bool gpIsValidAccess();
    LandTypes gpLandType(double x, double y);
    ISectionFile gpLoadSectionFile(string fileName);
    void gpLogServer(Player[] to, string format, object[] args);
    void gpLogServerArg(bool newArg, string format, object[] parms);
    void gpLogServerBegin(Player[] to, string format);
    void gpLogServerEnd();
    AiAirGroup gpMakeAirGroup(AiAircraft[] items, AiAirWayPoint[] way);
    int gpNextMissionNumber();
    Player gpPlayer();
    void gpPostMissionLoad(ISectionFile file);
    void gpPostMissionLoad(string fileName);
    Player[] gpRemotePlayers();
    string gpSectorName(double x, double y);
    void gpSetOrderMissionMenu(Player player, bool thisSubMenu, int ID, string[] keys, bool[] bSubMenu);
    ITime gpTime();
  }
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.