Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7761085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:03:28+00:00 2026-06-01T14:03:28+00:00

Okay this is my first WPF app and I am having a hard run

  • 0

Okay this is my first WPF app and I am having a hard run of knowing what it is I’m looking for. So here is what I’m trying to do, been googling for 4 hours now and not found a solution that fits the bill.

I’m trying to write a simple game ui, it is grid/tile based, and i have the grid built using grid column and row definitions and I’m successfully placing objects in various grid locations.
I am currently stuck as trying to build the player object. I want a single object reference to represent the various components of the players piece.

Currently I am using a polygon to represent the piece on the grid. Eventually I want to replace this with images or something.
I want to add in properties for what weapon and armor it has equipped
I want properties for health

Essentially in code i want something like this

dim player1 as new playerobject

player1.polygon.points = 0,0 60,30 0,60

player1.health = 100

player1.weapon = "axe"

etc

I can instantiate all this as separate variables etc, but I’d like to have a singular reference that contains all the variables, properties, objects, controls etc.

I’m using vb .net in vs 2010 (and no, I’m not looking to write in something else)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:03:29+00:00Added an answer on June 1, 2026 at 2:03 pm

    playerobject needs to be a class with

     public List<Int> Points { get; set; }
    
     public string Weapon { get; set; }
    
     public Int Health { get; set; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay this is a fairly broad question. This is my first App and I'm
Okay this is my first post here so please forgive me if i mess
Okay at first I thought this would be pretty straightforward. But I can't think
OKay first off this is really really similiar to the http://dribbble.com homepage. In the
Okay first up I am using: DirectX 10 C++ Okay this is a bit
Okay I will first admit I don't know the proper terminology for all this
Okay this is ridiculous: (or probably my design is :) Here are the URLs
Okay, so this is my first project using PHP and MySQL and I thought
This first piece has been solved by Eric's comments below but has led onto
First of all, I am using PhpMyAdmin , is this okay or not? Because

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.