public MSVolunteer(Vector3 position, Node path_to_mobber, MSUnit target, MSTower office, MSMap map, float initRotation) : base(position, path_to_mobber, map, false, initRotation) { this.target = target; this.office = office; this.isGoingToMobber = true; }
public MSMobber(Vector3 position, Node path, MSMap map, MSMilleniumDevelopmentGoal concern, float initRotation) : base(position, path, map, false, initRotation) { mobList = new List<MSMobber>(); this.concern = concern; string moodFaceAssetName = ""; switch (concern) { case MSMilleniumDevelopmentGoal.POVERTY: moodFaceAssetName = "Moods/Hunger"; break; case MSMilleniumDevelopmentGoal.EDUCATION: moodFaceAssetName = "Moods/Education"; break; case MSMilleniumDevelopmentGoal.GENDER_EQUALITY: moodFaceAssetName = "Moods/Equality"; break; case MSMilleniumDevelopmentGoal.CHILD_HEALTH: moodFaceAssetName = "Moods/Children"; break; case MSMilleniumDevelopmentGoal.MATERNAL_HEALTH: moodFaceAssetName = "Moods/Maternity"; break; case MSMilleniumDevelopmentGoal.HIV_AIDS: moodFaceAssetName = "Moods/Health"; break; case MSMilleniumDevelopmentGoal.ENVIRONMENT: moodFaceAssetName = "Moods/Environment"; break; case MSMilleniumDevelopmentGoal.GLOBAL_PARTNERSHIP: moodFaceAssetName = "Moods/Partnership"; break; } Vector3 screenProjection = Game.GraphicsDevice.Viewport.Project(Position, MSCamera.GetInstance().ProjectionMatrix, MSCamera.GetInstance().GetView(), Matrix.Identity); moodFace = new MSImageHolder(new Rectangle((int)screenProjection.X - 50, (int)screenProjection.Y - 50, 50, 50), Game.Content.Load<Texture2D>(moodFaceAssetName), MoodSwing.GetInstance().SpriteBatch, Game); }
public MSWorker(Vector3 position, Node path, MSChangeableBuilding to_build, MSMap map, float initRotation) : base(position, path, map, false, initRotation) { toBuild = to_build; }
public MSCitizen(Vector3 position, Node path, MSMap map, bool is_mobbable, float initRotation) : base(position, path, map, is_mobbable, initRotation) { rand = MSRandom.Instance.GetUniform(); }
public Node(int a, int b, int value, int est, Node par) { x = a; y = b; g = value; h = est; parent = par; }
public MSVolunteeringCitizen(Vector3 position, Node path, MSMap map, float initRotation) : base(position, path, map, false, initRotation) { }