Click here to Skip to main content
15,886,664 members
Articles / Desktop Programming / MFC

2D LUA Based Robot Simulator

Rate me:
Please Sign up or sign in to vote.
4.89/5 (26 votes)
14 Apr 2014Public Domain9 min read 130.8K   7.9K   119  
An article on designing your own robot simulator
#pragma once

#include "afxcmn.h"
#include "robot.h"

// Timer ID constants
const UINT ID_TIMER_PROPERTYBOX = 0x2001;
/////////////////////////////////////////////////////////////////////////////////////////

// CPropertyDlg dialog
class CPropertyDlg : public CDialog
{
	DECLARE_DYNAMIC(CPropertyDlg)

public:
	CPropertyDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CPropertyDlg();

	void update();

// Dialog Data
	enum { IDD = IDD_PROPERTYBOX };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
public:
	CListCtrl m_listProperty;
	CRobot *m_robot;	// this points to m_robot on NiceView.h
private:
	int updateInterval;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Student
Indonesia Indonesia
http://kataauralius.com/

Comments and Discussions