A
download foecommand.h
Language: C++
Copyright: Copyright 2003 Kenta Cho. All rights reserved.
LOC: 32
Project Info
PSP Ware(pspware)
Server: ps2dev
Type: svn
...pspware\trunk\rRootage\src\
   attractmanager.c
   attractmanager.h
   background.c
   background.h
   barragemanager.cc
   barragemanager.h
   boss.cc
   boss.h
   boss_mtd.h
   brgmng_mtd.h
   degutil.c
   degutil.h
   foe.cc
   foe.h
   foe_mtd.h
   foecommand.cc
   foecommand.h
   frag.c
   frag.h
   genmcr.h
   laser.c
   laser.h
   letterdata.h
   letterrender.c
   letterrender.h
   Makefile.orig
   movetosdk.S
   mt19937int.c
   perfmeter.c
   perfmeter.h
   rand.c
   rand.h
   rr.c
   rr.h
   rr.rc
   screen.c
   screen.h
   screenshot.c
   ship.c
   ship.h
   shot.c
   shot.h
   soundmanager.c
   soundmanager.h
   vector.c
   vector.h

/*
 * $Id: foecommand.h 268 2005-11-10 08:02:20Z mrbrown $
 *
 * Copyright 2003 Kenta Cho. All rights reserved.
 */

/**
 * Foe commands data.
 *
 * @version $Revision: 268 $
 */
#ifndef FOECOMMAND_H_
#define FOECOMMAND_H_

#include "bulletml/bulletmlparser.h"
#include "bulletml/bulletmlparser-tinyxml.h"
#include "bulletml/bulletmlrunner.h"
#include "foe.h"

#define COMMAND_SCREEN_SPD_RATE 512
#define COMMAND_SCREEN_VEL_RATE 512

class FoeCommand : public BulletMLRunner {
 public:
  FoeCommand(BulletMLParser* parser, struct foe* f);
  FoeCommand(BulletMLState* state, struct foe* f);

  virtual ~FoeCommand();

  virtual float getBulletDirection();
  virtual float getAimDirection();
  virtual float getBulletSpeed();
  virtual float getDefaultSpeed();
  virtual float getRank();
  virtual void createSimpleBullet(float direction, float speed);
  virtual void createBullet(BulletMLState* state, float direction, float speed);
  virtual int getTurn();
  virtual void doVanish();
  
  virtual void doChangeDirection(float d);
  virtual void doChangeSpeed(float s);
  virtual void FoeCommand::doAccelX(float ax);
  virtual void FoeCommand::doAccelY(float ay);
  virtual float FoeCommand::getBulletSpeedX();
  virtual float FoeCommand::getBulletSpeedY();
  
 private:
  struct foe *foe;
};
#endif


About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us