VoyForums

Hermosa Beach Florist
, Expressive Flowers has been Serving flowers nationwide since 1995.

VoyUser Login optional ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: test


Author:
sdkfka
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 12:19:32 07/29/01 Sun

/*********************************************
* Naval Battle Simulation System
*
* Abstract Base Class For All Vehicle Team
*
* by Simulation Controller Team
*
* July 2001
*
* baseclass.h
*********************************************/



#include "Vector.h"

#ifndef _NBSS_BASECLASS_H_
#define _NBSS_BASECLASS_H_

class baseClass
{
protected:
int ID;
int check;

public:
virtual Vector getPosition() = 0;
virtual void updatePosition() = 0;
virtual bool isActive() = 0;
virtual void execute(double) = 0;
virtual int getType() = 0;
virtual char getFlag() = 0;

void setID(int id)
{
ID = id;
}

int getID()
{
return ID;
}

void setCheck(int ck)
{
check = ck;
}

int getCheck()
{
return check;
}

virtual ~baseClass(){}
};

#endif


Notes:

There are two minor changes in the base class:

1)Argument type in execute() function is changed from int to double.

2)One attribute, "check", and two other functions, setCheck() , getCheck, are added for contingency. It will not affect the derived classes.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


VoyUser Login ] Not required to post.
Post a public reply to this message | Go post a new public message
* Notice: Posting problems? [ Click here ]
* HTML allowed in marked fields.
Message subject (required):

Name (required):

  Expression (Optional mood/title along with your name) Examples: (happy, sad, The Joyful, etc.) help)

  E-mail address (optional):

* Type your message here:


Notice: Copies of your message may remain on this and other systems on internet. Please be respectful.


Forum timezone: GMT-8
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.