예제 #1
0
        public Actor(String id, String asset_name, Vector2 starting, Stage Parent)  // Basic constructor.
        {
            this.objectId = IdFactory.GetNextId();
            asset_Name    = asset_name;
            speed         = 100;
            Location      = new Vector3(starting.X, starting.Y, 0);

            parent = Parent;
            name   = id;
            learnAction(new Actionstate("Talking"));
            learnAction(new Stand());
            learnAction(new Walk());
            learnAction(new Limp());
            learnAction(new Jump());
            learnAction(new Run());
            learnAction(new UseItem());
            learnAction(new Dead());
            learnAction(new Unconcious());
            learnAction(new FallForward());
            learnAction(new StandUp());
            learnAction(new Prone());
            learnAction(new Rest());

            defaultAction = knownActions["Standing"];
            SetAction("Standing");
        }
예제 #2
0
 public MenuItem(String ID)
 {
     objectId  = IdFactory.GetNextId();
     id        = ID;
     iconColor = Color.NavajoWhite;
     textColor = Color.Black;
     iconName  = "BlankIcon";
 }
예제 #3
0
 public MenuItem()
 {
     objectId  = IdFactory.GetNextId();
     id        = "Default ID";
     display   = "Default";
     iconColor = Color.NavajoWhite;
     textColor = Color.Black;
     iconName  = "BlankIcon";
 }
예제 #4
0
        public Person(string name, string password, string bio, string likes, VeryDependentActions act)
        {
            actions  = act;
            Name     = name;
            Password = password;
            Bio      = bio;
            Likes    = likes;

            Id = IdFactory.GetNextId();
        }
예제 #5
0
        public Actor(String Id, String asset_name, Vector2 starting)  // Basic constructor.
        {
            this.objectId = IdFactory.GetNextId();
            asset_Name    = asset_name;
            speed         = 100;
            Location      = new Vector3(starting.X, starting.Y, 0);
            name          = Id;
            height        = 60;
            radius        = 60;

            currentProfile = new AIPFullRandom();
        }
예제 #6
0
 public Menu(GameManager gameManager, String ImageName, String FontName, String Title)
 {
     objectId      = IdFactory.GetNextId();
     parent        = gameManager.UIManager;
     player        = gameManager.Player;
     fontName      = FontName;
     imageName     = ImageName;
     current_index = 0;
     x_position    = 700;
     y_position    = 400;
     y_spacing     = 20;
     x_spacing     = 0;
     title         = Title;
     loaded        = false;
 }
예제 #7
0
 /// <summary>
 /// Creates a menu that runs in the UIManager attached to the given GameManager.
 /// </summary>
 /// <param name="gameManager">GameManager that's hosting the desired UIManager</param>
 public Menu(GameManager gameManager)
 {
     objectId      = IdFactory.GetNextId();
     parent        = gameManager.UIManager;
     player        = gameManager.Player;
     fontName      = "Text";
     imageName     = "BlankIcon";
     current_index = 0;
     x_position    = 500;
     y_position    = 500;
     y_spacing     = 20;
     x_spacing     = 0;
     title         = "";
     loaded        = false;
 }
예제 #8
0
 public Stage(String id, StageManager SM)
 {
     regionsWide   = 1;
     regionsHigh   = 1;
     gameManager   = SM.gameManager;
     this.objectId = IdFactory.GetNextId();
     this.id       = id;
     position      = new Vector2(0, 0);
     MaxX          = regionsWide * 8192;
     MaxY          = regionsHigh * 8192;
     camera        = new Camera(this, input);
     this.SM       = SM;
     BGMTitle      = "FlowerWaltz";
     AMBColor      = new Vector3(1f, 1f, .4f);
     AMBStrength   = .8f;
     AM            = new AudioManager();
     loaded        = false;
     CreateScreenRenderObject();
 }
예제 #9
0
        public Actor(GameManager gameManager)
        {
            this.objectId    = IdFactory.GetNextId();
            asset_Name       = "male_select";
            speed            = 100;
            Location         = Vector3.Zero;
            ImageXindex      = 0; ImageYindex = 0;
            totalLifeTime    = 100;
            currentLife      = totalLifeTime;
            totalFatigue     = 100;
            currentFatigue   = totalFatigue;
            currentBeatTimer = defaultBeatTimer;
            currentBeatTime  = 0;
            awarenessWidth   = 180;
            height           = 60;
            radius           = 20;

            currentProfile   = new AIPFullRandom();
            this.gameManager = gameManager;
            Active           = true;
        }
예제 #10
0
 public Menu()
 {
     objectId = IdFactory.GetNextId();
 }
예제 #11
0
 public EVENT()
 {
     objectId = IdFactory.GetNextId();
 }
예제 #12
0
 public Lines(String text, Actor actor)
 {
     this.objectId = IdFactory.GetNextId();
     this.text     = text;
     this.actor    = actor;
 }
예제 #13
0
 public Lines()
 {
     this.objectId = IdFactory.GetNextId();
 }