Code Search for Developers
 
 
  

PlayerController.h from palisma2d at Krugle


Show PlayerController.h syntax highlighted

#pragma once

#include "../EventManager.h"
#include <string>
#include <iostream>
/**
=======================
Control the Players actions
=======================
*/
class PlayerController
{
public:
    PlayerController(void);
    /** Gather input, and send events */
    void GatherEvents();
private:
    int m_oldButtons;
public:
    virtual ~PlayerController(void);
};


/** Event Type for motion */
struct PlayerMovement : public IEventData
{   PlayerMovement(int b) { buttons = b; };
    int buttons;
    IEventData* Copy() { return new PlayerMovement(buttons); };
    virtual ~PlayerMovement() {IEventData::~IEventData(); };
};


struct entmove
{
    entmove() {};
    virtual ~entmove() {};
    void Update(long dt);
};




See more files for this project here

palisma2d

The University of Wisconsin-Parkside Developers Union first product. More info to come. Code name Palisma.

Project homepage: http://code.google.com/p/palisma2d/
Programming language(s): C,C++
License: gpl2

  DialogModel.cpp
  DialogModel.h
  DialogState.cpp
  DialogState.h
  Enemy.cpp
  Enemy.h
  EntityController.cpp
  EntityController.h
  EntityEvents.cpp
  EntityEvents.h
  EntityFactory.cpp
  EntityFactory.h
  EntityManager.cpp
  EntityManager.h
  EntityStates.cpp
  EntityStates.h
  Event.h
  HUD.cpp
  HUD.h
  IEntity.cpp
  IEntity.h
  IWeapon.cpp
  IWeapon.h
  InGameState.cpp
  InGameState.h
  Inventory.cpp
  Inventory.h
  MissionHolder.cpp
  MissionHolder.h
  Player.cpp
  Player.h
  PlayerConfig.cpp
  PlayerConfig.h
  PlayerController.cpp
  PlayerController.h
  QuestImporter.cpp
  QuestImporter.h
  ReadMe.txt
  Scene.cpp
  Scene.h
  Shotgun.cpp
  Shotgun.h
  State.h
  StateFactory.cpp
  StateFactory.h
  StateMachine.cpp
  StateMachine.h
  Tile.cpp
  Tile.h
  Weather.cpp
  Weather.h
  stdafx.cpp
  stdafx.h