List Class Reference

#include <List.h>

Inheritance diagram for List:

ListItem List of all members.

Public Member Functions

 List (int lineNumber=-1)
 List (List *list)
 ~List ()
bool atomic ()
ListItemfirst ()
Listrest ()
std::string getString ()
int getInt ()
double getDouble ()
std::string getRestString ()
Listcons (ListItem *first)
Listsnoc (ListItem *last)
void findAndReplace (std::string find, std::string replace)
bool empty ()
ListgetList ()
std::string firstString ()
int firstInt ()
double firstDouble ()
ListfirstList ()

Protected Attributes

ListItem_item
List_next
int _lineNumber

Detailed Description

Definition at line 22 of file List.h.


Constructor & Destructor Documentation

List::List int  lineNumber = -1  ) 
 

Definition at line 9 of file List.cpp.

Referenced by cons(), List(), and snoc().

List::List List list  ) 
 

Definition at line 14 of file List.cpp.

References _item, _next, List(), and rest().

List::~List  ) 
 

Definition at line 24 of file List.cpp.

References _item, and _next.


Member Function Documentation

bool List::atomic  )  [inline, virtual]
 

Implements ListItem.

Definition at line 27 of file List.h.

List * List::cons ListItem first  ) 
 

Definition at line 118 of file List.cpp.

References _item, _next, first(), and List().

bool List::empty  )  [inline]
 

Definition at line 43 of file List.h.

References _item.

Referenced by AnimatedSprite::AnimatedSprite(), findAndReplace(), getRestString(), getString(), Level::levelSpecsLoad(), Person::load(), EventPoint::load(), Enemy::load(), Door::load(), CutScene::load(), Object::Object(), ShowOneSprite::ShowOneSprite(), snoc(), and CommandManager::startPlaying().

void List::findAndReplace std::string  find,
std::string  replace
[virtual]
 

Implements ListItem.

Definition at line 150 of file List.cpp.

References _item, empty(), ListItem::findAndReplace(), and rest().

Referenced by EventPoint::findAndReplace().

ListItem * List::first  ) 
 

Definition at line 108 of file List.cpp.

References _item.

Referenced by cons(), firstDouble(), firstInt(), firstList(), firstString(), getRestString(), and getString().

double List::firstDouble  ) 
 

Definition at line 98 of file List.cpp.

References first(), and ListItem::getDouble().

int List::firstInt  ) 
 

Definition at line 93 of file List.cpp.

References first(), and ListItem::getInt().

Referenced by AddHealthCommand::AddHealthCommand(), AddScoreCommand::AddScoreCommand(), AimCommand::AimCommand(), FollowPlayerInRangeCommand::FollowPlayerInRangeCommand(), JumpCommand::JumpCommand(), MoveCommand::MoveCommand(), ShootInRangeCommand::ShootInRangeCommand(), and TurnCommand::TurnCommand().

List * List::firstList  )  [virtual]
 

Implements ListItem.

Definition at line 103 of file List.cpp.

References first(), and ListItem::getList().

Referenced by AimCommand::AimCommand(), AnimatedSprite::AnimatedSprite(), Level::levelSpecsLoad(), Person::load(), EventPoint::load(), Enemy::load(), Door::load(), CutScene::load(), Object::Object(), ShowOneSprite::ShowOneSprite(), and CommandManager::startPlaying().

std::string List::firstString  )  [virtual]
 

Implements ListItem.

Definition at line 88 of file List.cpp.

References first(), and ListItem::getString().

Referenced by AddHealthCommand::AddHealthCommand(), AimCommand::AimCommand(), CrouchCommand::CrouchCommand(), CutSceneTextCommand::CutSceneTextCommand(), FollowPlayerCommand::FollowPlayerCommand(), FollowPlayerInRangeCommand::FollowPlayerInRangeCommand(), JumpCommand::JumpCommand(), JumpResetCommand::JumpResetCommand(), EventPoint::load(), Enemy::load(), Command::loadCommand(), Sprite::loadText(), MoveCommand::MoveCommand(), PlayMusicCommand::PlayMusicCommand(), PlayScriptCommand::PlayScriptCommand(), PlaySoundCommand::PlaySoundCommand(), SetCameraCommand::SetCameraCommand(), SetControlCommand::SetControlCommand(), SetCutSceneCommand::SetCutSceneCommand(), SetDoorLockCommand::SetDoorLockCommand(), ShootCommand::ShootCommand(), ShootInRangeCommand::ShootInRangeCommand(), CommandManager::startPlaying(), StopPersonCommand::StopPersonCommand(), and TurnCommand::TurnCommand().

double List::getDouble  )  [virtual]
 

Implements ListItem.

Definition at line 51 of file List.cpp.

References _lineNumber.

int List::getInt  )  [virtual]
 

Implements ListItem.

Definition at line 45 of file List.cpp.

References _lineNumber.

List* List::getList  )  [inline, virtual]
 

Implements ListItem.

Definition at line 45 of file List.h.

std::string List::getRestString  ) 
 

Definition at line 74 of file List.cpp.

References empty(), first(), getRestString(), ListItem::getString(), and rest().

Referenced by getRestString(), and getString().

std::string List::getString  )  [virtual]
 

Implements ListItem.

Definition at line 59 of file List.cpp.

References Parser::close, empty(), first(), getRestString(), ListItem::getString(), Parser::open, and rest().

Referenced by TurnCommand::getString(), StopPersonCommand::getString(), ShootInRangeCommand::getString(), ShootCommand::getString(), SetDoorLockCommand::getString(), SetCutSceneCommand::getString(), SetControlCommand::getString(), SetCameraCommand::getString(), PlaySoundCommand::getString(), PlayScriptCommand::getString(), PlayMusicCommand::getString(), MoveCommand::getString(), JumpResetCommand::getString(), JumpCommand::getString(), FollowPlayerInRangeCommand::getString(), FollowPlayerCommand::getString(), EndLevelCommand::getString(), CutSceneTextCommand::getString(), CrouchCommand::getString(), AimCommand::getString(), AddScoreCommand::getString(), and AddHealthCommand::getString().

List * List::rest  ) 
 

Definition at line 113 of file List.cpp.

References _next.

Referenced by AddHealthCommand::AddHealthCommand(), AddScoreCommand::AddScoreCommand(), AimCommand::AimCommand(), AnimatedSprite::AnimatedSprite(), CrouchCommand::CrouchCommand(), CutSceneTextCommand::CutSceneTextCommand(), findAndReplace(), FollowPlayerCommand::FollowPlayerCommand(), FollowPlayerInRangeCommand::FollowPlayerInRangeCommand(), getRestString(), getString(), JumpCommand::JumpCommand(), JumpResetCommand::JumpResetCommand(), Level::levelSpecsLoad(), List(), Person::load(), EventPoint::load(), Enemy::load(), CutScene::load(), Object::loadObject(), Sprite::loadText(), MoveCommand::MoveCommand(), PlayMusicCommand::PlayMusicCommand(), PlayScriptCommand::PlayScriptCommand(), PlaySoundCommand::PlaySoundCommand(), SetCameraCommand::SetCameraCommand(), SetControlCommand::SetControlCommand(), SetCutSceneCommand::SetCutSceneCommand(), SetDoorLockCommand::SetDoorLockCommand(), ShootCommand::ShootCommand(), ShootInRangeCommand::ShootInRangeCommand(), ShowOneSprite::ShowOneSprite(), snoc(), CommandManager::startPlaying(), StopPersonCommand::StopPersonCommand(), and TurnCommand::TurnCommand().

List * List::snoc ListItem last  ) 
 

Definition at line 126 of file List.cpp.

References _item, _next, empty(), List(), and rest().

Referenced by TurnCommand::getString(), StopPersonCommand::getString(), ShootInRangeCommand::getString(), ShootCommand::getString(), SetDoorLockCommand::getString(), SetCutSceneCommand::getString(), SetControlCommand::getString(), SetCameraCommand::getString(), PlaySoundCommand::getString(), PlayScriptCommand::getString(), PlayMusicCommand::getString(), MoveCommand::getString(), JumpResetCommand::getString(), JumpCommand::getString(), FollowPlayerInRangeCommand::getString(), FollowPlayerCommand::getString(), EndLevelCommand::getString(), CutSceneTextCommand::getString(), CrouchCommand::getString(), AimCommand::getString(), AddScoreCommand::getString(), AddHealthCommand::getString(), and Parser::parseOpen().


Member Data Documentation

ListItem* List::_item [protected]
 

Definition at line 54 of file List.h.

Referenced by cons(), empty(), findAndReplace(), first(), List(), snoc(), and ~List().

int List::_lineNumber [protected]
 

Definition at line 56 of file List.h.

Referenced by getDouble(), and getInt().

List* List::_next [protected]
 

Definition at line 55 of file List.h.

Referenced by cons(), List(), rest(), snoc(), and ~List().


The documentation for this class was generated from the following files:
Generated on Sat Apr 22 15:05:21 2006 for ProjectX by  doxygen 1.4.6-NO