Exemplo n.º 1
0
 public AnalysisGraph(float width, float height, CampaignAnalysis analysis)
 {
     m_width    = width;
     m_height   = height;
     m_analysis = analysis;
     m_geometry = new Geometry(Primitive.Lines);
 }
Exemplo n.º 2
0
        public AnalysisState(Game.Game game) : base(game)
        {
            m_analysis = CampaignAnalysis.Analyse(
                Campaign.Get("campaigns/main.campaign"),
                GetAllProgressFiles(game)
                );

            m_graph               = new AnalysisGraph(Game.Screen.Width - 64.0f, Game.Screen.Height - 64.0f, m_analysis);
            m_graph.Anchor        = Anchor.CentreMiddle;
            m_graph.LocalPosition = new Vector2(-0.5f * m_graph.Width, -0.5f * m_graph.Height);
        }