Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/QNX4/Group5/SwitchPoint.cpp

Go to the documentation of this file.
00001 #ifndef __J2K__Train__SwitchPoint_CPP__
00002 #define __J2K__Train__SwitchPoint_CPP__
00003 
00004 #include "resource.h"
00005 
00006 SwitchPoint::SwitchPoint():Resource() {
00007   straight();
00008 }
00009 
00010 BOOL SwitchPoint::isAvailable() {
00011   return (numOfOwners == 1);
00012 }
00013 
00014 void SwitchPoint::curve() {
00015   switchStatus = CURVE;
00016 }
00017 
00018 void SwitchPoint::straight() {
00019   switchStatus = STRAIGHT;
00020 }
00021 
00022 BOOL SwitchPoint::isCurved() {
00023   return (switchStatus == CURVE)
00024 }
00025 
00026 BOOL SwitchPoint::isStraight(){
00027   return (switchStatus == STRAIGHT);
00028 } 
00029 
00030 #endif

Generated on Sun Oct 14 18:46:42 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001